News for hackers. Stuff that matters.
Re:Why does Haskell, in your opinion, suck? by solidsnack9000 on Monday April 18, 2016 @12:50AM (#11517788)
Because the token is passed only within the implementation of `>>=`, which is private to the IO module, you never have access to it. So no need for the runtime to keep snapshots lying around.

Monads provide a way to combine them and a way to inject values into them; but not all monads provide the inspection interface that would allow you to examine that state token. The definition of a monad guarantees only the injection and the combination (the "unit" and "multiply").

There are no comments on this comment yet.