News for hackers. Stuff that matters.
Re:Monads in JavaScript by tome on Wednesday July 22, 2015 @01:56AM (#9927941)
Many IO functions in Haskell use what is known as "lazy I/O", so no, monads are not particularly to do with order of evaluation.

http://book.realworldhaskell.org/read/io.html#io.lazy

Re:Monads in JavaScript by dschiptsov on Wednesday July 22, 2015 @02:17AM (#9927995)
Rather, monads are a conceptual structure into which I/O happens to fi t.

https://www.haskell.org/tutorial/

Re:Monads in JavaScript by tome on Wednesday July 22, 2015 @03:02AM (#9928114)
I'm not sure what you're trying to say.
Re:Monads in JavaScript by dschiptsov on Wednesday July 22, 2015 @04:21AM (#9928328)
That because IO implies explicit order, Monad as an ADT has been used to explicitly evaluate one expression at a time. It has no "magic" or "special mathematical" properties.