Skip to content

Commit e80365d

Browse files
committed
Remove unused dependencies for lib:hackage-server
This passes: ``` cabal build lib:hackage-server --ghc-options=-Werror=unused-packages cabal build all --enable-tests --enable-benchmarks ```
1 parent 1d5f291 commit e80365d

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

hackage-server.cabal

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ common defaults
137137
, mtl >= 2.2.1 && < 2.4
138138
-- we use Control.Monad.Except, introduced in mtl-2.2.1
139139
, pretty >= 1.1 && < 1.2
140-
, process >= 1.6 && < 1.7
141140
, text ^>= 1.2.5.0 || >= 2.0 && < 2.2
142141
, time >= 1.9 && < 1.15
143142
, transformers >= 0.5 && < 0.7
@@ -150,8 +149,6 @@ common defaults
150149
, Cabal-syntax >= 3.14.2.0 && < 3.16
151150
-- Cabal-syntax needs to be bound to constrain hackage-security
152151
-- see https://github.com/haskell/hackage-server/issues/1130
153-
, fail ^>= 4.9.0
154-
, network >= 3 && < 3.3
155152
, network-bsd ^>= 2.8
156153
, network-uri ^>= 2.6
157154
, parsec ^>= 3.1.13
@@ -423,7 +420,6 @@ library
423420
, bimap ^>= 0.5
424421
--NOTE: blaze-builder-0.4 is now a compat package that uses bytestring-0.10 builder
425422
, blaze-builder ^>= 0.4
426-
, blaze-html ^>= 0.9
427423
, cereal ^>= 0.5
428424
, commonmark ^>= 0.2
429425
-- commonmark-0.2 needed by commonmark-extensions-0.2.2
@@ -433,7 +429,6 @@ library
433429
, cryptohash-sha256 ^>= 0.11.100
434430
, csv ^>= 0.1
435431
, ed25519 ^>= 0.0.5
436-
, exceptions ^>= 0.10
437432
, hackage-security >= 0.6 && < 0.7
438433
-- N.B: hackage-security-0.6.2 uses Cabal-syntax-3.8.1.0
439434
-- see https://github.com/haskell/hackage-server/issues/1130
@@ -451,11 +446,9 @@ library
451446
, random >= 1.2 && < 1.4
452447
, rss ^>= 3000.2.0.7
453448
, safecopy ^>= 0.10
454-
, semigroups ^>= 0.20
455449
, split ^>= 0.2
456450
, stm ^>= 2.5.0
457451
, stringsearch ^>= 0.3.6.6
458-
, tagged ^>= 0.8.5
459452
, transformers ^>= 0.6
460453
, xhtml >= 3000.2.0.0 && < 3000.5
461454
, xmlgen ^>= 0.6
@@ -501,6 +494,7 @@ executable hackage-mirror
501494
-- version constraints inherited from hackage-server
502495
, HTTP
503496
, hackage-security
497+
, process >= 1.6 && < 1.7
504498

505499
executable hackage-build
506500
import: exe-defaults
@@ -510,6 +504,7 @@ executable hackage-build
510504
build-depends:
511505
-- version constraints inherited from hackage-server
512506
, http-types
507+
, process >= 1.6 && < 1.7
513508

514509
-- Runtime dependency only;
515510
-- TODO: we have no proper support for this kind of dependencies in cabal

0 commit comments

Comments
 (0)