Conversation
b3b4bd4 to
dff31ba
Compare
hls-test-utils/hls-test-utils.cabal
Outdated
| directory, | ||
| extra, | ||
| filepath, | ||
| ghcide ==2.8.0.0, |
There was a problem hiding this comment.
One more reason I prefer cabal-gild, is that it doesn't try to preserve version constraint indentation.
This leads to more diff friendly format (adding/removing dependency with longer than longest name, doesn't lead to indentation changes for other version constraints)
e.g.
short >=1.0
longer >= 2.0 < Adding longer dependency re-indents version constraint for shorter, which makes for longer diffs
|
can |
tfausak
left a comment
There was a problem hiding this comment.
👋 I'm the author/maintainer of Gild. Let me know if I can do anything to help here!
ac4506d to
7bda10f
Compare
|
Reformatted the |
5eb7a78 to
cefc2d9
Compare
|
@VeryMilkyJoe Thanks for rebasing this, I think we should merge this PR now and see how annoying it is for future contributors. Formatted with cabal-gild-1.5.0.1 |
|
Shipit! |
ghcide/ghcide.cabal
Outdated
| bug-reports: https://github.com/haskell/haskell-language-server/issues | ||
| tested-with: GHC == {9.12.2, 9.10.1, 9.8.4, 9.6.7} | ||
| bug-reports: https://github.com/haskell/haskell-language-server/issues | ||
| tested-with: ghc ==9.12.2 || ==9.10.1 || ==9.8.4 || ==9.6.7 |
There was a problem hiding this comment.
Starting with version 1.5.0.3, Gild will correctly leave this in set notation. See tfausak/cabal-gild#118.
shake-bench/shake-bench.cabal
Outdated
| Chart, | ||
| Chart-diagrams, | ||
| aeson, | ||
| base >=4 && <5, |
There was a problem hiding this comment.
Same note here: Starting with version 1.5.0.3, Gild will correctly retain the wildcard version constraint. tfausak/cabal-gild#118
| hls-plugin-api ==2.11.0.0, | ||
| hls-test-utils ==2.11.0.0, | ||
|
|
||
| if flag(isolatecabalfmttests) |
There was a problem hiding this comment.
Cabal converts flag names to lowercase. Gild does the same in order to make this conversion obvious. However it could retain the case from the input if desired. See #4230 (comment).
| if os(darwin) | ||
| ghc-options: -optl-Wl,-ld_classic | ||
| if os(osx) | ||
| ghc-options: "-optl-Wl,-ld_classic" |
There was a problem hiding this comment.
Hmm, I wonder why this got quoted. Maybe because there's a comma in it?
Also note that darwin and osx are aliases. Gild canonicalizes operating systems (and architectures).
| , semanticTokens | ||
| , notes | ||
| import: | ||
| -- plugins |
There was a problem hiding this comment.
Same note here about comment placement.
haskell-language-server.cabal
Outdated
| directory, | ||
| extra, | ||
| filepath, | ||
| ghcide, |
There was a problem hiding this comment.
In this case I don't think it changes the semantics, but starting with version 1.5.0.3, Gild would keep this as ghcide:{ghcide}. See tfausak/cabal-gild#115.
cefc2d9 to
2c69e4c
Compare
c37cf33 to
4c62386
Compare
4c62386 to
ade3516
Compare
ade3516 to
5b9c894
Compare
Compare with #4230
Closes #4228