4 ms·
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.o
by tome 11y ago
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 http://book.realworldhaskell.org/read/io.html#io.lazy
- dschiptsov 11y agoRather, monads are a conceptual structure into which I/O happens to fit. https://www.haskell.org/tutorial/ https://www.haskell.org/tutorial/
- tome 11y agoI'm not sure what you're trying to say.
- dschiptsov 11y agoThat 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.