i hate the output of elm-format, though :( it's very wasteful of vertical space.
Why do Haskell and Elm format lists like this?
type alias Circle =
{ x : Float
, y : Float
, radius : Float
}
...and not like this: type alias Circle = {
x : Float,
y : Float,
radius : Float
}
...? The first makes me shudder with revulsion every time I see it --- that's not where commas go, dammit --- and there must be a reason, which I've never been able to figure out.The Elm style guide mentions in passing that trailing commas require a diff that adds a field to modify two lines but one, but that applies to leading commas too if you add the field at the beginning of the list.
The trailing comma is more easily missed I'd say.
https://github.com/martindemello/crosspad.elm/commit/c67deb4...