[Haskell-cafe] A mistake in haskellwiki

Jake McArthur jake.mcarthur at gmail.com
Thu Aug 6 09:36:57 EDT 2009


Don Stewart wrote:
> leaveye.guo:
>> Hi haskellers:
>>
>> There is a mistake in http://www.haskell.org/haskellwiki/State_Monad
>>
>> It post two functions like this :
>>
>>   evalState :: State s a -> s -> a
>>   evalState act = fst $ runState act
>>
>>   execState :: State s a -> s -> s
>>   execState act = snd $ runState act
>>
>> Both the '$' operators should be '.'.
>>
>> Anyone would correct it ?
> 
> 
> Well, it's a wiki ... :-)

Which requires registration and has not been open for registration for 
some time now.

- Jake


More information about the Haskell-Cafe mailing list