[Haskell-cafe] 'Proper' use of the State monad
Henning Thielemann
lemming at henning-thielemann.de
Wed May 2 07:02:53 EDT 2007
On Mon, 30 Apr 2007, Denis Volk wrote:
> Hello all,
>
> I am trying to make a (turn-based) game in Haskell and need to pass
> around quite a bit of information, so using the State monad seems most
> appropriate. My question is, which is a better idea:
The famous "Why functional programming matters" contains an example for
game programming. In this paper the complete tree of all possible games is
constructed lazily, but only selected branches are visited.
http://www.math.chalmers.se/~rjmh/Papers/whyfp.html
More information about the Haskell-Cafe
mailing list