3 ms·
(Also a Haskell beginner) I think his point is that the IO type may be an example of a monad, but shut up about the monad part because it's not relevant to lea
by ajkjk 12y ago
(Also a Haskell beginner)
I think his point is that the IO type may be an example of a monad, but shut up about the monad part because it's not relevant to learning how to use it.
- raek 12y agoExactly. You only need to know about some primitive operations (like putStrLn and getLine), and ways to combine them (like >>, >>=, and return). This was my point when I wrote my "IO tutorial" (not a monad tutorial!): http://blog.raek.se/2012/10/19/haskell-io-in-five-minutes/ http://blog.raek.se/2012/10/19/haskell-io-in-five-minutes/