Except that these two code examples do two very different things. The Haskell version actually uses a continuation to run multiple requests The Javascript version modifies local mutable state. The Haskell version does it via server interaction, which makes it much more useful to modern web apps.
Comments
For pure shortness, I think HTML + JavaScript won here:
http://arclanguage.org/item?id=979
The Haskell example is interesting, though, because it shows a working webapp in Haskell, and it's not even that scary.
Except that these two code examples do two very different things. The Haskell version actually uses a continuation to run multiple requests The Javascript version modifies local mutable state. The Haskell version does it via server interaction, which makes it much more useful to modern web apps.