Permitting trailing commas for record syntax ADT declarations
Alexander Berntsen
alexander at plaimi.net
Mon Sep 22 12:18:01 UTC 2014
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
- From a lead-developer-who-merges-a-lot point of view, trailing commas
in import lists are a godsend.
import Foo
(
fu,
baz,
quux,
)
is brilliant. It lets me add a line,
+ foobar,
and remove a line,
- - fu,
in a very neat manner. Annoying 3-way merges be gone!
It would be *very* useful if the same behaviour existed for record
syntax. I wish this existed on an almost daily basis,
data Foo a b = MkFoo
{
fu :: a,
ba :: b,
}
If there's not too much opposition to the idea, I would like to take a
stab at implementing this. Any pointers on *how* to implement it,
would be very useful as I'm not familiar with the codebase outside of
libraries/base at all.
- --
Alexander
alexander at plaimi.net
https://secure.plaimi.net/~alexander
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iF4EAREIAAYFAlQgE3kACgkQRtClrXBQc7WHLQD/V9bHhC9ekobxxB5j7ZwAVj8e
G3pQr4jmLAOFHkdSs/EBAIybHdSVXQlQ1fFTpLUzB/EIDLpiHlKKlU4tG01hYUhp
=A1Ky
-----END PGP SIGNATURE-----
More information about the ghc-devs
mailing list