Re: [Haskell-cafe] A mistake in haskellwiki

2009-08-06 Thread Raynor Vliegendhart
On 8/6/09, Don Stewart d...@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 -

Re: [Haskell-cafe] A mistake in haskellwiki

2009-08-06 Thread Jake McArthur
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

Re: [Haskell-cafe] A mistake in haskellwiki

2009-08-06 Thread Gwern Branwen
On Thu, Aug 6, 2009 at 9:36 AM, Jake McArthurjake.mcart...@gmail.com wrote: Which requires registration and has not been open for registration for some time now. - Jake It's been open for registration for some time now. -- gwern signature.asc Description: OpenPGP digital signature

Re: [Haskell-cafe] A mistake in haskellwiki

2009-08-06 Thread Sean Leather
On Thu, Aug 6, 2009 at 15:52, Gwern Branwen wrote: On Thu, Aug 6, 2009 at 9:36 AM, Jake McArthur wrote: Which requires registration and has not been open for registration for some time now. It's been open for registration for some time now. In that case, how about changing the site

Re: [Haskell-cafe] A mistake in haskellwiki

2009-08-06 Thread Gwern Branwen
On Thu, Aug 6, 2009 at 10:01 AM, Sean Leatherleat...@cs.uu.nl wrote: On Thu, Aug 6, 2009 at 15:52, Gwern Branwen wrote: On Thu, Aug 6, 2009 at 9:36 AM, Jake McArthur wrote: Which requires registration and has not been open for registration for some time now. It's been open for

Re: [Haskell-cafe] A mistake in haskellwiki

2009-08-06 Thread Magnus Therning
On Thu, Aug 6, 2009 at 3:01 PM, Sean Leatherleat...@cs.uu.nl wrote: On Thu, Aug 6, 2009 at 15:52, Gwern Branwen wrote: On Thu, Aug 6, 2009 at 9:36 AM, Jake McArthur wrote: Which requires registration and has not been open for registration for some time now. It's been open for

[Haskell-cafe] A mistake in haskellwiki

2009-08-05 Thread L.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

Re: [Haskell-cafe] A mistake in haskellwiki

2009-08-05 Thread Don Stewart
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