the dreaded offside rule
Malcolm Wallace
Malcolm.Wallace at cs.york.ac.uk
Thu Mar 9 11:33:04 EST 2006
Doaitse Swierstra <doaitse at cs.uu.nl> 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
Haskell'98?
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)
Regards,
Malcolm
More information about the Haskell-prime
mailing list