ghc-devs Digest, Vol 133, Issue 40

David Feuer david.feuer at gmail.com
Tue Sep 23 16:47:01 UTC 2014


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/ghc-devs/attachments/20140923/a63da92d/attachment.html>


More information about the ghc-devs mailing list