
Hello, is it possible to search for all functions that have concrete type? For example I want to convert [Char] to [Word], but I don't know whether function for that exist. Or I wanna find contructor for SomeSpecialType and I don't know it's name. Can you search those function in GHCI via some command? E.G. GHCi, version 8.0.1: http://www.haskell.org/ghc/ :? for help [}{] :searchtype / :st [Char] -> [Word] Found X match(es): foo1 :: (Char -> Word) -> [Char] -> [Word] foo2 :: [Char] -> [Word] ... [}{] :st SomeSpecialType Found 1 match(es): foo3 :: ... -> .. -> SomeSpecialType King Regards, Ford

Hi Ford, Take a look at Hoogle. Indispensable. https://www.haskell.org/hoogle/ Andrew

To add to what Andrew said, you can get Hoogle integration in GHCi with
some custom commands:
https://wiki.haskell.org/Hoogle#GHCi_Integration
Hoogle is not perfect, but it's the closest you'll find to what you want.
You could even define some augmenting functions to trim its (often large)
output and bind them to GHCi commands as well.
On Fri, Jul 8, 2016 at 1:37 AM Andrew Bernard
Hi Ford,
Take a look at Hoogle. Indispensable.
https://www.haskell.org/hoogle/
Andrew _______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
participants (3)
-
Andrew Bernard
-
David Ringo
-
OxFord