[Haskell-cafe] Inconsistent trailing comma in export list and record syntax

Christian Maeder Christian.Maeder at dfki.de
Tue Jul 12 10:09:10 CEST 2011


Generally allowing trailing (or leading or repeated) commas would clash 
with tuple sections. Also the pair constructor "(,)" is a special case.

http://www.haskell.org/ghc/docs/7.0.4/html/users_guide/syntax-extns.html#tuple-sections

Cheers Christian

Am 11.07.2011 12:09, schrieb Joachim Breitner:
> Hi,
>
> Am Montag, den 11.07.2011, 10:49 +0200 schrieb L Corbijn:
>> You could of course say that I'm using a bad style, but it remains
>> that it seems to be inconsistent to allow a trailing comma in one
>> place and not in the other. So is there an reason for this?
>
> there is actually a bug report against the ghc package in Debian from a
> user, requesting a more liberal comma separated list parsing. We did not
> patch ghc in Debian to that end, though :-)
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=511834
>
> Greetings,
> Joachim
>
>
>
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe



More information about the Haskell-Cafe mailing list