4 ms·
Good rant, but can we stop it with the "You need to understand category theory to do IO in Haskell" meme? main = do putStrLn "What's your name?"
by kscaldef 17y ago
Good rant, but can we stop it with the "You need to understand category theory to do IO in Haskell" meme?
main = do
putStrLn "What's your name?"
name <- getLine
putStrLn ("Hello " ++ name)
Was that really so hard?
- eru 17y agoYes, it's easy. (And a few bits of category do help when you are toying around with other typeclasses. Have a look at the typeclassopedia for an introduction.)