the dreaded offside rule

Malcolm Wallace Malcolm.Wallace at
Thu Mar 9 11:33:04 EST 2006

Doaitse Swierstra <doaitse at> wrote:

> > '(case x of p -> e, 42)'.
> Where one of course should have written:
>    (case x of p -> e; , 42)
> or even
>    (case x of p -> e;;, 42)

Hmm?  I'm mystified.  Are you saying that Simon's example is not valid

Surely the simplest and clearest way to re-write it to avoid the
parse-error layout rule is actually:

     (case x of { p -> e }, 42)


More information about the Haskell-prime mailing list