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
[email protected]
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
[email protected]
http://www2.tcs.ifi.lmu.de/~abel/
_______________________________________________
ghc-devs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/ghc-devs