• + 1 comment

    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 :)