[Haskell-cafe] simple state monad exercises? (besides labeling
Thomas ten Cate
ttencate at gmail.com
Mon Jul 6 13:17:28 EDT 2009
I used the State monad to implement a Brainfuck  interpreter a few
months ago. It stored the program counter, pointer and the memory of
There might have been a different (better?) way, but as I was trying
to learn more about monads, it was an obvious choice.
On Mon, Jul 6, 2009 at 18:54, Thomas Hartman<tphyahoo at gmail.com> wrote:
> Can someone give some simple common scenarios where the state monad is
> useful, besides labeling trees?
> References to puzzles like those in project Euler or similar would be nice.
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
More information about the Haskell-Cafe