Skip to content

Commit d7147fc

Browse files
authored
Merge pull request #9855 from cabalism/fix/remove-unused-packages
Remove unused packages
2 parents cd9b1fd + fa915e9 commit d7147fc

File tree

8 files changed

+27
-49
lines changed

8 files changed

+27
-49
lines changed

Cabal-described/Cabal-described.cabal

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ library
1919
, rere >=0.1 && <0.3
2020
, tasty
2121
, tasty-quickcheck
22-
, transformers
2322

2423
exposed-modules:
2524
Distribution.Described

Cabal-syntax/Cabal-syntax.cabal

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@ library
5959
if impl(ghc >= 8.0) && impl(ghc < 8.8)
6060
ghc-options: -Wnoncanonical-monadfail-instances
6161

62-
if impl(ghc >= 8.10)
63-
ghc-options: -Wunused-packages
64-
6562
build-tool-depends: alex:alex
6663

6764
exposed-modules:

Cabal-tests/Cabal-tests.cabal

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -57,31 +57,23 @@ test-suite unit-tests
5757
main-is: UnitTests.hs
5858
build-depends:
5959
array
60-
, async >=2.2.2 && <2.3
6160
, base >=4.9 && <5
62-
, binary
6361
, bytestring
6462
, Cabal
6563
, Cabal-described
6664
, Cabal-syntax
6765
, Cabal-QuickCheck
68-
, Cabal-tests
6966
, containers
70-
, deepseq
7167
, Diff >=0.4 && <0.6
7268
, directory
7369
, filepath
74-
, integer-logarithms >=1.0.2 && <1.1
7570
, pretty
7671
, QuickCheck >=2.14 && <2.15
77-
, rere >=0.1 && <0.3
78-
, tagged
7972
, tasty >=1.2.3 && <1.6
8073
, tasty-hunit
8174
, tasty-quickcheck
8275
, temporary
8376
, text
84-
, transformers
8577

8678
ghc-options: -Wall
8779
default-language: Haskell2010
@@ -102,7 +94,6 @@ test-suite parser-tests
10294
, tasty >=1.2.3 && <1.6
10395
, tasty-golden >=2.3.1.1 && <2.4
10496
, tasty-hunit
105-
, tasty-quickcheck
10697
, tree-diff >=0.1 && <0.4
10798

10899
ghc-options: -Wall
@@ -121,7 +112,6 @@ test-suite check-tests
121112
, directory
122113
, filepath
123114
, tasty >=1.2.3 && <1.6
124-
, tasty-expected-failure
125115
, tasty-golden >=2.3.1.1 && <2.4
126116

127117
ghc-options: -Wall
@@ -157,7 +147,6 @@ test-suite hackage-tests
157147
, Cabal
158148
, Cabal-syntax
159149
, Cabal-tree-diff
160-
, containers
161150
, deepseq
162151
, directory
163152
, filepath
@@ -167,7 +156,6 @@ test-suite hackage-tests
167156
, base-orphans >=0.6 && <0.10
168157
, clock >=0.8 && <0.9
169158
, optparse-applicative >=0.13.2.0 && <0.19
170-
, stm >=2.4.5.0 && <2.6
171159
, tar >=0.5.0.3 && <0.7
172160
, tree-diff >=0.1 && <0.4
173161

Cabal/Cabal.cabal

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,6 @@ library
6565
if impl(ghc >= 8.0) && impl(ghc < 8.8)
6666
ghc-options: -Wnoncanonical-monadfail-instances
6767

68-
if impl(ghc >= 8.10)
69-
ghc-options: -Wunused-packages
70-
7168
exposed-modules:
7269
Distribution.Backpack.Configure
7370
Distribution.Backpack.ComponentsGraph

cabal-install-solver/cabal-install-solver.cabal

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,9 @@ library
4040
-Wall -Wcompat -Wnoncanonical-monad-instances
4141
-fwarn-tabs -fwarn-incomplete-uni-patterns
4242

43-
if impl(ghc <8.8)
43+
if impl(ghc < 8.8)
4444
ghc-options: -Wnoncanonical-monadfail-instances
4545

46-
if impl(ghc >=8.10)
47-
ghc-options: -Wunused-packages
48-
4946
exposed-modules:
5047
Distribution.Client.Utils.Assertion
5148

@@ -135,7 +132,6 @@ Test-Suite unit-tests
135132

136133
build-depends:
137134
, base >= 4.10 && <4.20
138-
, Cabal
139135
, Cabal-syntax
140136
, cabal-install-solver
141137
, tasty >= 1.2.3 && <1.6

cabal-install/cabal-install.cabal

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,6 @@ common warnings
5151
if impl(ghc < 8.8)
5252
ghc-options: -Wnoncanonical-monadfail-instances
5353

54-
if impl(ghc >=9.0)
55-
-- Warning: even though introduced with GHC 8.10, -Wunused-packages
56-
-- gives false positives with GHC 8.10.
57-
ghc-options: -Wunused-packages
58-
5954
common base-dep
6055
build-depends: base >=4.10 && <4.20
6156

cabal-testsuite/cabal-testsuite.cabal

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ common shared
2929
, base >= 4.9 && <4.20
3030
-- this needs to match the in-tree lib:Cabal version
3131
, Cabal ^>= 3.11.0.0
32-
, Cabal-syntax ^>= 3.11.0.0
33-
, Cabal-tests
3432

3533
ghc-options:
3634
-Wall
@@ -62,9 +60,9 @@ library
6260
Test.Cabal.ScriptEnv0
6361

6462
build-depends:
63+
, Cabal-tests
6564
, aeson ^>= 1.4.2.0 || ^>=1.5.0.0 || ^>= 2.0.0.0 || ^>= 2.1.0.0 || ^>= 2.2.1.0
6665
, async ^>= 2.2.1
67-
, attoparsec ^>= 0.13.2.2 || ^>=0.14.1
6866
, base16-bytestring ^>= 0.1.1.5 || ^>= 1.0
6967
, bytestring ^>= 0.10.0.2 || ^>= 0.11.0.0 || ^>= 0.12.0.0
7068
, containers ^>= 0.5.0.0 || ^>= 0.6.0.1 || ^>= 0.7
@@ -79,7 +77,6 @@ library
7977
, regex-tdfa ^>= 1.2.3.1 || ^>=1.3.1.0
8078
, retry ^>= 0.9.1.0
8179
, array ^>= 0.4.0.1 || ^>= 0.5.0.0
82-
, temporary ^>= 1.3
8380
, text ^>= 1.2.3.1 || ^>= 2.0.1 || ^>= 2.1
8481
, transformers ^>= 0.3.0.0 || ^>= 0.4.2.0 || ^>= 0.5.2.0 || ^>= 0.6.0.2
8582

@@ -101,11 +98,9 @@ executable cabal-tests
10198
, cabal-testsuite
10299
-- constraints inherited via lib:cabal-testsuite component
103100
, async
104-
, exceptions
105101
, filepath
106102
, optparse-applicative
107103
, process
108-
, transformers
109104
-- dependencies specific to exe:cabal-tests
110105
, clock ^>= 0.7.2 || ^>=0.8
111106
, directory
@@ -127,23 +122,24 @@ executable setup
127122
-- If you require an external dependency for a test it must be listed here.
128123
executable test-runtime-deps
129124
default-language: Haskell2010
130-
build-depends: cabal-testsuite,
131-
base,
132-
directory,
133-
Cabal,
134-
Cabal-syntax,
135-
filepath,
136-
transformers,
137-
bytestring,
138-
time,
139-
process,
140-
exceptions
125+
-- Apart from base that is a compile-time dependency, the rest are runtime dependencies
126+
build-depends:
127+
, Cabal
128+
, Cabal-syntax
129+
, base
130+
, bytestring
131+
, cabal-testsuite
132+
, directory
133+
, exceptions
134+
, filepath
135+
, process
136+
, time
137+
, transformers
141138
main-is: static/Main.hs
142139
if !os(windows)
143140
build-depends: unix
144141
else
145-
build-depends:
146-
, Win32
142+
build-depends: Win32
147143

148144
custom-setup
149145
-- we only depend on even stable releases of lib:Cabal

project-cabal/ghc-options.config

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
11
program-options
2-
ghc-options: -fno-ignore-asserts -Werror
2+
ghc-options:
3+
-fno-ignore-asserts
4+
-Werror
5+
6+
-- Warning: even though introduced with GHC 8.10, -Wunused-packages gives false
7+
-- positives with GHC 8.10.
8+
if impl(ghc >= 9)
9+
program-options
10+
ghc-options: -Wunused-packages
11+
package cabal-testsuite
12+
ghc-options: -Wwarn=unused-packages

0 commit comments

Comments
 (0)