Skip to content

Commit

Permalink
Change how dependencies on sublibraries are printed
Browse files Browse the repository at this point in the history
  • Loading branch information
phadej committed Feb 20, 2024
1 parent e109388 commit 89cc381
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 0.1.11

- Change how dependencies on (multiple) sublibraries are output:
Always print each sublibrary on individual line,
with the first one having the version range.

# 0.1.10

- Fix removal of empty lines in free text fields (like `description`)
Expand Down
2 changes: 1 addition & 1 deletion cabal-fmt.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 2.2
name: cabal-fmt
version: 0.1.10
version: 0.1.11
synopsis: Format .cabal files
category: Development
description:
Expand Down
1 change: 0 additions & 1 deletion fixtures/with-sublibs.format
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
Up to date
cabal-version: 3.0
name: with-sublibs
version: 1
Expand Down
3 changes: 3 additions & 0 deletions tests/golden.hs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ main = defaultMain $ testGroup "tests"

, goldenTest' "issue69"
, goldenTest' "issue29"

, goldenTest' "sublib"
, goldenTest' "with-sublibs"
]

goldenTest' :: String -> TestTree
Expand Down

0 comments on commit 89cc381

Please sign in to comment.