Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
tome
on July 22, 2015
|
parent
|
context
|
favorite
| on:
Monads in JavaScript
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
dschiptsov
on July 22, 2015
[–]
Rather, monads are a conceptual structure into which I/O happens to fit.
https://www.haskell.org/tutorial/
tome
on July 22, 2015
|
parent
[–]
I'm not sure what you're trying to say.
dschiptsov
on July 22, 2015
|
root
|
parent
[–]
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.
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
http://book.realworldhaskell.org/read/io.html#io.lazy