-
Notifications
You must be signed in to change notification settings - Fork 696
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could we use a formatter for .cabal
files in this project?
#9674
Comments
I'm mildly supportive. We learned the downsides of auto formatting all too well with fourmolu: backports become very painful, contributor's life becomes harder. But cabal files are a tiny part of the code, so maybe these downsides don't quite apply. |
Small gain with an increase of stuff that can break CI, not a fan. |
FWIW I don't like the auto formatting. Having yet another one would be another hoop to jump through before being able to submit a patch that isn't add odds with CI for little gain. |
I used As for backporting, would that be easier if we ran Disregarding |
There's now cabal-gild that can format I don't like having to hand-crank my editor to line up with the existing ad-hoc formatting, like this snippet that tries but fails to do column aligned version constraints; cabal/Cabal-syntax/Cabal-syntax.cabal Lines 30 to 46 in fe82d9b
|
Take cabal/cabal-testsuite/cabal-testsuite.cabal Lines 126 to 136 in 2ee79c3
cabal/cabal-testsuite/cabal-testsuite.cabal Lines 60 to 66 in 2ee79c3
|
Could we use a formatter for
.cabal
files such ascabal-fmt
? Nothing fancy, just a CI check to see that the.cabal
files have been formated (by formatting again and checking for diffs).I notice leading commas in
cabal-install-solver.cabal
and trailing commas incabal-install.cabal
.cabal/cabal-install-solver/cabal-install-solver.cabal
Lines 101 to 113 in 03d7b42
cabal/cabal-install/cabal-install.cabal
Lines 214 to 245 in 03d7b42
The text was updated successfully, but these errors were encountered: