News for hackers. Stuff that matters.
Re:Haskell for Web Developers by asdasf on Friday July 26, 2013 @02:52PM (#6109824)
>it’s reasonable to ask whether the intent was to print the total of the numbers collected by the loop so far.

Yes, it is reasonable to ask that. But you just said it was incorrect, you didn't ask that.

>That this side discussion has happened almost makes my point for me

I don't see how. Your point appears to be "I can write shorter python". You can write shorter haskell to do that too, the point was to demonstrate the State monad, not to be concise.

Re:Haskell for Web Developers by dllthomas on Friday July 26, 2013 @06:48PM (#6111005)
If the code isn't incorrect, the label printed is. It is not computing the total.