[Haskell-beginners] Questions on GHCi 6.10.4 + general questions

Chaddaï Fouché chaddai.fouche at gmail.com
Fri Nov 27 04:22:28 EST 2009

On Fri, Nov 27, 2009 at 10:15 AM, Stephen Tetley
<stephen.tetley at gmail.com> wrote:
> Hi Lev
> Where clauses don't use braces so that's first problem.

You are mistaken, where clauses can use braces to avoid having to use
layout as all others layout-based constructs in Haskell (do, where,
let, case _ of, even the top-level...). But in this case the
semicolons are mandatory, since you're explicitly rejecting
layout-based rules. That is one problem of this code (use of braces
without the semicolons), I didn't check if there were others.


More information about the Beginners mailing list