[Haskell-cafe] A mistake in haskellwiki
Raynor Vliegendhart
shinnonoir at gmail.com
Thu Aug 6 05:22:19 EDT 2009
On 8/6/09, Don Stewart <dons at galois.com> 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 ?
Fixed :)
> Well, it's a wiki ... :-)
>
> -- Don
That might be true, but not everyone has an account :)
More information about the Haskell-Cafe
mailing list