2 ms·
Try doing everything in IO, passing stuff around by hand and ignoring all that abstraction. You will immediately spot some places where a monad will help you.
by marcosdumay 10y ago
Try doing everything in IO, passing stuff around by hand and ignoring all that abstraction.
You will immediately spot some places where a monad will help you. Where that happens, use the monad, elsewhere, keep it simple. With time you will regret some of that simple code, when that happens, change it (Haskell's best use case is on refactoring). With even more time you'll get a taste for where it's good to go complex from the start.