In Haskell, do-notation is syntactic sugar for writing monadic code.
Most Haskell tutorials teach the use of do-notation for IO. I also started with the do-notation, but that makes my …
haskell functional-programming io monads do-notationI cannot figure out how to make the concise if-then-else notation work, mentioned at [ http://hackage.haskell.org/trac/haskell-prime/…
haskell do-notation