[Haskell-cafe] Re: The State Monad

ajb at spamcop.net ajb at spamcop.net
Fri Oct 8 21:15:56 EDT 2004

G'day all.

Quoting Paul Hudak <paul.hudak at yale.edu>:

> Sorry to nit-pick, but state monads are NOT syntactic sugar -- they're
> just an example of good old data/functional abstraction, that also
> happens to be in the form of a monad.


State monads help to future-proof your code because you don't have to
change very much when you find that you need state _and_ something
else (e.g. I/O).

Andrew Bromage

More information about the Haskell-Cafe mailing list