Permitting trailing commas for record syntax ADT declarations
Johan Tibell
johan.tibell at gmail.com
Mon Sep 22 14:01:36 UTC 2014
On Mon, Sep 22, 2014 at 3:57 PM, Herbert Valerio Riedel <hvriedel at gmail.com>
wrote:
> On 2014-09-22 at 14:31:10 +0200, Alexander Berntsen wrote:
> > Forwarding this & my reply to the ML as well,
> >
> >
> > On 22/09/14 14:27, David Luposchainsky wrote:
> >> +1. While you're at it, you may also want to consider allowing
> >> leading commas for the folks that write their exports/records "the
> >> other way round"
> > Sure. Both styles are common in the wild, so that makes sense.
>
> +1 (I'd even say that leading-comma style is the predominant one these
> days thanks to [1] et al.)
>
> [snip]
>
>
> [1]:
> https://github.com/tibbe/haskell-style-guide/blob/master/haskell-style.md
And to complete the circle. I designed [1] to work with the lack of
support for a trailing comma. If we supported a trailing comma my style
guide would probably be different.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/ghc-devs/attachments/20140922/54e86099/attachment.html>
More information about the ghc-devs
mailing list