[Haskell-cafe] Why is Haskell flagging this?

Ozgur Akgun ozgurakgun at gmail.com
Thu Dec 23 01:37:01 CET 2010


see also:
http://hackage.haskell.org/packages/archive/mtl/latest/doc/html/Control-Monad-State-Lazy.html#v:state

On 22 December 2010 20:02, Ryan Ingram <ryani.spam at gmail.com> wrote:

> Interesting.  In that case,
>
> state f = StateT $ \s -> Identity (f s)
>
> allows "state" to replace "State" in that code.
>

Ozgur
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20101223/549984c2/attachment.htm>


More information about the Haskell-Cafe mailing list