[Haskell-beginners] state monad

Brandon Allbery allbery.b at gmail.com
Sun Apr 22 12:43:21 CEST 2012

On Sun, Apr 22, 2012 at 04:40, Paul Higham <polygame at mac.com> wrote:

> stackPlay.hs:6:7: Not in scope: data constructor `State'
> Please excuse the cognitive deficit, but I cannot figure out why this
> should not work as advertised.

Not your fault; things were rearranged in the library, and `State` is no
longer a distinct type (it's `StateT Identity` now).  `state` (lowercase)
is the replacement for the old `State` constructor.

brandon s allbery                                      allbery.b at gmail.com
wandering unix systems administrator (available)     (412) 475-9364 vm/sms
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20120422/47ce155d/attachment.htm>

More information about the Beginners mailing list