[Haskell-cafe] Really Simple explanation of Continuations Needed

Ozgur Akgun ozgurakgun at gmail.com
Sat Oct 1 14:01:17 CEST 2011


Hi.

On 1 October 2011 11:55, Yves Parès <limestrael at gmail.com> wrote:

> BTW Heinrich, the
>
> evalState (sequence . repeat . State $ \s -> (s,s+1)) 0
>
> at the end doesn't work anymore. It should be replaced by :
> evalState (sequence . repeat . StateT $ \s -> Identity (s,s+1)) 0
>
>
Or equivalently:

evalState (sequence . repeat . state $ \s -> (s,s+1)) 0

Ozgur
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20111001/0c00710b/attachment.htm>


More information about the Haskell-Cafe mailing list