[Haskell-cafe] Re: The State Monad
jgoerzen at complete.org
Thu Oct 7 23:41:56 EDT 2004
On 2004-10-07, John Goerzen <jgoerzen at complete.org> wrote:
> This thing is giving me fits. I need a global variable of sorts for an
> implementation of Syslog. (Yes, I really do.)
OK, my problem is that I have been looking at the world wrong.
I found what I really needed in Data.IORef.
Which leaves me with an odd curiosity -- I still can't figure out how
state monads are anything but syntactic sugar (and lead more to
spaghetti code at that <g>)
More information about the Haskell-Cafe