Leading/trailing commata [Re: ghc-devs Digest, Vol 133, Issue 40]

Andreas Abel abela at chalmers.se
Wed Sep 24 21:27:39 UTC 2014


Yes, I think extra commas in the middle could be useful as well...

On 23.09.2014 18:47, David Feuer wrote:
> Simon Peyton Jones wrote:
>
>     anywhere, I think.  You might want a new HsSyn data type for "list
>     with possible leading or trailing commas":
>
>        data HsCommadList a
>          = HCL
>               Int -- Number of leading commas
>               [a]
>               Int -- Number of trailing commas
>
>
> If we're going to go to the trouble of supporting extra leading and
> trailing commas, why not also support extra commas in the middle? That way,
>
>      #include "theseexports"
>      ,
>      #include "thoseexports"
>
> doesn't have to worry about how these and those exports are listed.
>
> David
>
>
> _______________________________________________
> ghc-devs mailing list
> ghc-devs at haskell.org
> http://www.haskell.org/mailman/listinfo/ghc-devs
>

-- 
Andreas Abel  <><      Du bist der geliebte Mensch.

Department of Computer Science and Engineering
Chalmers and Gothenburg University, Sweden

andreas.abel at gu.se
http://www2.tcs.ifi.lmu.de/~abel/


More information about the ghc-devs mailing list