On Tue, Dec 01, 2009 at 09:14:22AM +0000, Simon Marlow wrote:
>
> So I think the layout rule should read something like
>
> A layout context can be closed by either
> (a) a token indented less than the current indentation level
> (b) a closing bracket that matches an open bracket outside the
> current layout context
>
> where the set of brackets applying to (b) are (), [], {}, and let..in.
And if/then, then/else?
> In particular, not commas.
In think I'd agree, although I think we'll want to look at how much code
breaks in practice by not having the comma rule. We should be able to
generate warnings when the comma rule is used, though, which would
smooth a transition.
Also, this style (which I think is quite popular nowadays):
( e1
, e2
, e3)
would still work, as the layout would be closed by the comma being less
indented.
Thanks
Ian
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc