Skip to content

Commit 3334d81

Browse files
Improve network versioning; add to benchmarks.
1 parent 996d3e1 commit 3334d81

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

mongoDB.cabal

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ Library
4040
, conduit-extra
4141
, mtl >= 2
4242
, cryptohash -any
43-
, network -any
4443
, parsec -any
4544
, random -any
4645
, random-shuffle -any
@@ -65,7 +64,8 @@ Library
6564
build-depends: network < 2.9
6665
else
6766
-- "Network.BSD" has been moved into its own package `network-bsd`
68-
build-depends: network-bsd >= 2.7 && < 2.9
67+
build-depends: network >= 3.0
68+
, network-bsd >= 2.7 && < 2.9
6969

7070
Exposed-modules: Database.MongoDB
7171
Database.MongoDB.Admin
@@ -119,7 +119,6 @@ Benchmark bench
119119
, containers -any
120120
, mtl >= 2
121121
, cryptohash -any
122-
, network -any
123122
, nonce >= 1.0.5
124123
, stm
125124
, parsec -any
@@ -130,5 +129,14 @@ Benchmark bench
130129
, transformers-base >= 0.4.1
131130
, hashtables >= 1.1.2.0
132131
, criterion
132+
133+
if flag(_old-network)
134+
-- "Network.BSD" is only available in network < 2.9
135+
build-depends: network < 2.9
136+
else
137+
-- "Network.BSD" has been moved into its own package `network-bsd`
138+
build-depends: network >= 3.0
139+
, network-bsd >= 2.7 && < 2.9
140+
133141
default-language: Haskell2010
134142
default-extensions: OverloadedStrings

0 commit comments

Comments
 (0)