logoalt Hacker News

doyougnutoday at 4:39 PM1 replyview on HN

Agreed. the Haskeller in me screams "You've just implemented the IO monad without language support".


Replies

AndyKelleytoday at 7:05 PM

It's not a monad because it doesn't return a description of how to carry out I/O that is performed by a separate system; it does the I/O inside the function before returning. That's a regular old interface, not a monad.

show 1 reply