We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
What's great about Hoogle is that you can look up a function by signature. So, say you want to know which function(s) to use to read a String from stdin. You don't know their names, but you know they do IO and that you want a String, so their type must be :: IO String. Type that in Hoogle and see what happens :)
Remove Duplicates
You are viewing a single comment's thread. Return to all comments →
Two months to find getLine? It's easier to read a string from stdin in Haskell than in many mainstream languages!
Here's a link you'll find very useful: https://www.haskell.org/hoogle/
What's great about Hoogle is that you can look up a function by signature. So, say you want to know which function(s) to use to read a String from stdin. You don't know their names, but you know they do IO and that you want a String, so their type must be
:: IO String
. Type that in Hoogle and see what happens :)