-
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
cabal init generates badly formatted file #5555
Comments
/cc @byorgey |
I personally prefer formatting of |
Just to clarify, this is what
This is unusable without formatting first. Compare with
|
@osa1 My bad, I haven't understand your ticket good enough. Yeah, I don't like long lists with dependencies as well. |
The |
Hmm, actually, how do |
Correct, we don't have exactprint yet. |
One could extend https://github.com/haskell/cabal/blob/master/Cabal/Distribution/Fields/Pretty.hs with annotations, it's how I did in https://github.com/phadej/cabal-fmt/blob/master/src/CabalFmt/PrettyField.hs to add comments. |
(tried with cabal installed from master branch)
cabal init
generates .cabal file with very long lines for fields likeother-extensions
,exposed-modules
andbuild-depends
. Fixing this by hand is tedious. Cabal format helps, but that's hard to discover (#2460). Ideally I think cabal should format the file before automatically.The text was updated successfully, but these errors were encountered: