« Return to Thread: simple state monad exercises? (besides labeling trees)

Re: simple state monad exercises? (besides labeling trees)

by Matthias Görgens-2 :: Rate this Message:

Reply to Author | View in Thread

> Can someone give some simple common scenarios where the state monad is
> useful, besides labeling trees?

Emulating the VM given in this years ICFP programming contest was also
a good application of the state monad.  Of course you interprate much
simpler language imperative languages, too.  (However that might feel
a bit forced as an exercise.)
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@...
http://www.haskell.org/mailman/listinfo/haskell-cafe

 « Return to Thread: simple state monad exercises? (besides labeling trees)