Commit f17d0a0a authored by Vaibhav Sagar's avatar Vaibhav Sagar

src/IHaskell/Eval/Hoogle.hs: fix :document

parent 2df8df0e
......@@ -119,9 +119,7 @@ document string = do
where
matches (SearchResult resp) =
case split " " $ self resp of
name:_ -> strip string == strip name
_ -> False
("<s0>" ++ strip string ++ "</s0>") `elem` (split " " $ self resp)
matches _ = False
toDocResult (SearchResult resp) = Just $ DocResult resp
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment