Skip to content

Commit 5a8cb75

Browse files
committed
cleanup unused dependencies throughout the codebase
1 parent 693b589 commit 5a8cb75

19 files changed

+8
-320
lines changed

acid-state-exts/acid-state-exts.cabal

+2-16
Original file line numberDiff line numberDiff line change
@@ -23,32 +23,18 @@ Library
2323
Serokell.AcidState.Instances
2424
Serokell.AcidState.Util
2525

26-
Build-depends: array,
27-
acid-state,
26+
Build-depends: acid-state,
2827
base >= 4 && < 5,
29-
bytestring >= 0.10.2,
30-
cereal >= 0.4.1.0,
31-
containers,
3228
directory,
33-
filelock,
3429
filepath,
3530
exceptions,
36-
extensible-exceptions,
3731
extra,
38-
hashable,
3932
mtl,
40-
network,
4133
safecopy >= 0.9.4,
42-
stm >= 2.4,
43-
template-haskell,
44-
th-expand-syns >= 0.4.1 && < 0.5,
45-
time-units,
46-
unordered-containers
34+
time-units
4735

4836
if os(windows)
4937
Build-depends: Win32
50-
else
51-
Build-depends: unix
5238

5339
Hs-Source-Dirs: src/
5440

auxx/cardano-sl-auxx.cabal

-4
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ executable cardano-auxx
126126
, cardano-sl
127127
, cardano-sl-auxx
128128
, cardano-sl-core
129-
, cardano-sl-crypto
130129
, cardano-sl-db
131130
, cardano-sl-infra
132131
, cardano-sl-networking
@@ -173,9 +172,6 @@ executable cardano-auxx
173172
build-tools: cpphs >= 1.19
174173
ghc-options: -pgmP cpphs -optP --cpp
175174

176-
if !os(windows)
177-
build-depends: unix
178-
179175
test-suite cardano-auxx-test
180176
main-is: Test.hs
181177
other-modules:

binary/cardano-sl-binary.cabal

-11
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ library
3838
, hashable
3939
, lens
4040
, micro-recursion-schemes
41-
, mtl
4241
, safecopy
4342
, safe-exceptions
4443
, serokell-util
@@ -98,22 +97,13 @@ test-suite test
9897

9998
type: exitcode-stdio-1.0
10099
build-depends: QuickCheck
101-
, aeson
102100
, base
103101
, bytestring
104102
, cardano-sl-binary
105103
, cardano-sl-util-test
106104
, cborg
107105
, cereal
108106
, containers
109-
, cryptonite
110-
, data-default
111-
, directory
112-
, file-embed
113-
, extra
114-
, filepath
115-
, filelock
116-
, fmt
117107
, formatting
118108
, generic-arbitrary
119109
, half
@@ -125,7 +115,6 @@ test-suite test
125115
, safecopy
126116
, serokell-util >= 0.1.3.4
127117
, tagged
128-
, template-haskell
129118
, text
130119
, formatting
131120
, time-units

binary/test/cardano-sl-binary-test.cabal

-5
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,14 @@ library
1919
Test.Pos.Cbor.RefImpl
2020

2121
build-depends: QuickCheck
22-
, aeson
2322
, base
2423
, bytestring
2524
, cardano-sl-binary
2625
, cardano-sl-util-test
2726
, cborg
2827
, cereal
29-
, cryptonite
3028
, containers
31-
, directory
3229
, cryptonite
33-
, filepath
3430
, formatting
3531
, half
3632
, hedgehog
@@ -40,7 +36,6 @@ library
4036
, quickcheck-instances
4137
, safecopy
4238
, serokell-util
43-
, template-haskell
4439
, text
4540
, universum
4641

core/cardano-sl-core.cabal

+1-8
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ library
163163
build-depends: aeson
164164
, aeson-options
165165
, ansi-terminal
166-
, async
167166
, base
168167
, base58-bytestring
169168
, bytestring
@@ -215,7 +214,6 @@ library
215214
, unliftio
216215
, unliftio-core
217216
, unordered-containers
218-
, vector
219217

220218
default-language: Haskell2010
221219

@@ -280,9 +278,7 @@ test-suite test
280278
Test.Pos.Core.Arbitrary.Unsafe
281279
Test.Pos.Core.Dummy
282280

283-
build-depends: aeson
284-
, base
285-
, base16-bytestring
281+
build-depends: base
286282
, bytestring
287283
, cardano-crypto
288284
, cardano-sl-binary
@@ -294,8 +290,6 @@ test-suite test
294290
, cardano-sl-util-test
295291
, containers
296292
, cryptonite
297-
, deepseq
298-
, ed25519
299293
, formatting
300294
, generic-arbitrary
301295
, hedgehog
@@ -310,7 +304,6 @@ test-suite test
310304
, time-units
311305
, universum >= 0.1.11
312306
, unordered-containers
313-
, vector
314307

315308
ghc-options:
316309
-threaded

core/test/cardano-sl-core-test.cabal

-6
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ library
2525
Test.Pos.Core.Json
2626

2727
build-depends: QuickCheck
28-
, aeson
2928
, base
30-
, base16-bytestring
3129
, bytestring
3230
, cardano-crypto
3331
, cardano-sl-binary
@@ -39,9 +37,6 @@ library
3937
, cardano-sl-util-test
4038
, containers
4139
, cryptonite
42-
, data-default
43-
, ed25519
44-
, formatting
4540
, generic-arbitrary
4641
, hedgehog
4742
, pvss
@@ -52,7 +47,6 @@ library
5247
, time-units
5348
, universum
5449
, unordered-containers
55-
, vector
5650

5751
default-language: Haskell2010
5852

db/cardano-sl-db.cabal

-2
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ library
148148
, memory
149149
, mmorph
150150
, mtl
151-
, reflection
152151
, resourcet
153152
, rocksdb-haskell-ng
154153
, safe-exceptions
@@ -202,7 +201,6 @@ test-suite test
202201
type: exitcode-stdio-1.0
203202
build-depends: base
204203
, cardano-sl-binary
205-
, cardano-sl-binary-test
206204
, cardano-sl-core
207205
, cardano-sl-core-test
208206
, cardano-sl-db

db/test/cardano-sl-db-test.cabal

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ library
2525
, cardano-sl-binary
2626
, cardano-sl-chain
2727
, cardano-sl-chain-test
28-
, cardano-sl-core
2928
, cardano-sl-core-test
3029
, cardano-sl-crypto-test
3130
, cardano-sl-db

explorer/cardano-sl-explorer.cabal

-3
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ library
9292
, cardano-sl-db
9393
, cardano-sl-generator
9494
, cardano-sl-infra
95-
, cardano-sl-networking
9695
, cardano-sl-util
9796

9897
-- mtl ++
@@ -156,10 +155,8 @@ executable cardano-explorer
156155
, cardano-sl
157156
, cardano-sl-chain
158157
, cardano-sl-core
159-
, cardano-sl-crypto
160158
, cardano-sl-infra
161159
, cardano-sl-explorer
162-
, cardano-sl-networking
163160
, cardano-sl-util
164161
, optparse-applicative
165162
, universum

generator/cardano-sl-generator.cabal

+2-28
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ library
4444
, cardano-sl-core
4545
, cardano-sl-core-test
4646
, cardano-sl-crypto
47-
, cardano-sl-crypto-test
4847
, cardano-sl-db
4948
, cardano-sl-infra
5049
, cardano-sl-util
@@ -183,34 +182,21 @@ benchmark cardano-sl-verification-bench
183182
main-is: Main.hs
184183
other-modules: Bench.Pos.Criterion.Block.Logic
185184
type: exitcode-stdio-1.0
186-
build-depends: async
187-
, base
185+
build-depends: base
188186
, cardano-sl
189-
, cardano-sl-binary
190187
, cardano-sl-chain
191188
, cardano-sl-core
192189
, cardano-sl-crypto
193190
, cardano-sl-db
194191
, cardano-sl-generator
195-
, cardano-sl-infra
196-
, cardano-sl-networking
197192
, cardano-sl-util
198-
, containers
199193
, criterion
200-
, cryptonite
201-
, data-default
202-
, ether
203-
, lens
204194
, log-warper
205-
, lrucache
206195
, MonadRandom
207-
, mtl
208196
, QuickCheck
209197
, random
210198
, time-units
211199
, universum >= 0.1.11
212-
, unliftio-core
213-
, unordered-containers
214200
, serokell-util
215201
default-language: Haskell2010
216202
ghc-options: -threaded
@@ -250,8 +236,7 @@ benchmark cardano-sl-verification-bench
250236
executable cardano-sl-verification-bench-exe
251237
hs-source-dirs: app
252238
main-is: VerificationBench.hs
253-
build-depends: async
254-
, base
239+
build-depends: base
255240
, bytestring
256241
, cardano-sl
257242
, cardano-sl-binary
@@ -260,29 +245,18 @@ executable cardano-sl-verification-bench-exe
260245
, cardano-sl-crypto
261246
, cardano-sl-db
262247
, cardano-sl-generator
263-
, cardano-sl-infra
264-
, cardano-sl-networking
265248
, cardano-sl-util
266249
, containers
267-
, criterion
268250
, cryptonite
269-
, data-default
270251
, deepseq
271252
, directory
272-
, ether
273253
, formatting
274-
, lens
275-
, lrucache
276254
, MonadRandom
277-
, mtl
278255
, optparse-applicative
279-
, QuickCheck
280256
, random
281257
, text
282258
, time-units
283259
, universum >= 0.1.11
284-
, unliftio-core
285-
, unordered-containers
286260
default-language: Haskell2010
287261
ghc-options: -threaded
288262
-rtsopts

infra/cardano-sl-infra.cabal

-3
Original file line numberDiff line numberDiff line change
@@ -221,11 +221,9 @@ test-suite test
221221
Test.Pos.Infra.Json
222222

223223
build-depends: QuickCheck
224-
, aeson
225224
, async
226225
, base
227226
, bytestring
228-
, cardano-sl-binary
229227
, cardano-sl-binary-test
230228
, cardano-sl-chain
231229
, cardano-sl-chain-test
@@ -244,7 +242,6 @@ test-suite test
244242
, iproute
245243
, kademlia
246244
, universum
247-
, unordered-containers
248245

249246
ghc-options: -Wall
250247
-O2

infra/test/cardano-sl-infra-test.cabal

-3
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,9 @@ library
2626
Test.Pos.Infra.Json
2727

2828
build-depends: QuickCheck
29-
, aeson
3029
, async
3130
, base
3231
, bytestring
33-
, cardano-sl-binary
3432
, cardano-sl-binary-test
3533
, cardano-sl-chain
3634
, cardano-sl-chain-test
@@ -49,7 +47,6 @@ library
4947
, iproute
5048
, kademlia
5149
, universum
52-
, unordered-containers
5350

5451
default-language: Haskell2010
5552

lib/cardano-sl.cabal

-4
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,6 @@ library
120120
-- NodeContext
121121
Pos.Context.Context
122122

123-
-- Crypto
124-
Pos.Crypto.HDDiscovery
125-
126123
-- GState
127124
Pos.GState.Context
128125
Pos.GState.GState
@@ -408,7 +405,6 @@ benchmark cardano-bench-criterion
408405
, network-transport
409406
, network-transport-inmemory
410407
, optparse-applicative
411-
, time-units
412408
, universum >= 0.1.11
413409
default-language: Haskell2010
414410
ghc-options: -threaded -rtsopts

0 commit comments

Comments
 (0)