
9 Mar
2006
9 Mar
'06
4:33 p.m.
Doaitse Swierstra
'(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