Permitting trailing commas for record syntax ADT declarations

Roman Cheplyaka roma at ro-che.info
Fri Sep 26 21:26:50 UTC 2014


On 26/09/14 22:17, Richard Eisenberg wrote:
> A modest counter-proposal to this idea:
> 
> What if we just stopped requiring commas in import/export lists? As far as I can tell, they're not necessary for proper parsing.

Things can get somewhat ambiguous:

  module M (module A value B type C)

Granted, 'module' and 'type' are keywords and cannot be value names, but:

* this introduces ambiguities for the parser, even if they are resolvable
* this is hard to read for humans
* it seems likely that we'll be getting even more qualifiers in the
future ('kind'?)

Roman

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://www.haskell.org/pipermail/ghc-devs/attachments/20140927/0bea3a2e/attachment.sig>


More information about the ghc-devs mailing list