You are viewing a single comment's thread. Return to all comments →
Just wanted to say I really hate Haskell. Took me two months to figure out how to read strings and work with them...
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 :)
:: IO String
I knew all that back then, problem was going from IO to the non IO datatypes needed, and how to read them when formated, millions of integers in a single line, and such, the easy challenges dont cover all the input setups
I have figured IO already though
That is all very easy as well. Going from IO to "the non IO datatypes" is Haskell 101, without which you cannot do any real work.
Hopefully you don't hate it anymore then?
I stil think it is a super convoluted mess and newbie unfriendly, but I can do it. Once you have data in haskell format it gets better too as it is much faster than other engines.
sad but not the end of the world - just pick another functional language from the stack