[Haskell-beginners] how does the State monad actually work?

Benjamin Edwards edwards.benj at gmail.com
Tue May 24 10:28:13 CEST 2011


That should gave been state is a type that takes a state and returns a state
tupled with a value. The chapter in yaht is 9.3

On 24 May 2011 08:50, "Benjamin Edwards" <edwards.benj at gmail.com> wrote:

I highly recommend reading some of the tutorials that show how to derive the
state monad. The type of state is really a function that takes a parameter
and returns a state tupled with a value. Yet another haskell tutorial has
quite a good chapter on this.


>
> On 24 May 2011 08:40, "Sean Perry" <shaleh at speakeasy.net> wrote:
>
> I am trying to understand ...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20110524/e7be6f4b/attachment.htm>


More information about the Beginners mailing list