
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 ? Regards -------------- L.Guo 2009-08-06

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 ... :-) -- Don

On 8/6/09, 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 '$' operators should be '.'.
Anyone would correct it ?
Fixed :)
Well, it's a wiki ... :-)
-- Don
That might be true, but not everyone has an account :)

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

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 notice[1] from "Note: new account creation has been disabled as an anti-spam measure," which seems to indicate otherwise, to something more informative. Alternatively, add an informative link to the login page[2] and clear the site notice. Regards, Sean [1] http://www.haskell.org/haskellwiki/MediaWiki:Sitenotice [2] http://www.haskell.org/haskellwiki/Special:Userlogin

On Thu, Aug 6, 2009 at 10:01 AM, 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 notice[1] from "Note: new account creation has been disabled as an anti-spam measure," which seems to indicate otherwise, to something more informative. Alternatively, add an informative link to the login page[2] and clear the site notice.
Regards, Sean
[1] http://www.haskell.org/haskellwiki/MediaWiki:Sitenotice [2] http://www.haskell.org/haskellwiki/Special:Userlogin
Only admins can edit the sitenotice, and the only active admin is Ashley, who I emailed earlier about this. -- gwern

On Thu, Aug 6, 2009 at 3:01 PM, 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 notice[1] from "Note: new account creation has been disabled as an anti-spam measure," which seems to indicate otherwise, to something more informative. Alternatively, add an informative link to the login page[2] and clear the site notice.
If you click the link ("new account creation") you will be lead to the information about how to get an account. Perhaps not the best way to lead people to that info, but it's all there. /M -- Magnus Therning (OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus identi.ca|twitter: magthe
participants (7)
-
Don Stewart
-
Gwern Branwen
-
Jake McArthur
-
L.Guo
-
Magnus Therning
-
Raynor Vliegendhart
-
Sean Leather