[Haskell-beginners] How to construct complex string

Stephen Tetley stephen.tetley at gmail.com
Fri Aug 9 20:27:44 CEST 2013

Hi Martin

I think case ... of here is equivalent to let ... in the only difference is
that it can avoid growing rightwards. The declaration and body of let would
have to be indented to the same level as the `let` keyword. With case ...
of the consequent expression doesn't have to be indented to the level of
`case` provided it is on a new line.

I don't think I've ever noticed this "typographical trick" of a single case
_case_ in other code.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20130809/d91f052e/attachment.htm>

More information about the Beginners mailing list