[Haskell-beginners] search function by type

OxFord fordforox at gmail.com
Thu Jul 7 17:30:44 UTC 2016


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20160707/fff5fdd0/attachment.html>


More information about the Beginners mailing list