[Haskell-cafe] Really Simple explanation of Continuations Needed
Heinrich Apfelmus
apfelmus at quantentunnel.de
Sun Oct 2 09:17:35 CEST 2011
Ozgur Akgun wrote:
> 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
Thanks, I've changed it.
Best regards,
Heinrich Apfelmus
--
http://apfelmus.nfshost.com
More information about the Haskell-Cafe
mailing list