[Haskell-cafe] A mistake in haskellwiki
leaveye.guo at gmail.com
Wed Aug 5 23:33:47 EDT 2009
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 ?
More information about the Haskell-Cafe