diff options
-rw-r--r-- | dht-client.cabal | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/dht-client.cabal b/dht-client.cabal index 2489c888..415e9289 100644 --- a/dht-client.cabal +++ b/dht-client.cabal | |||
@@ -37,6 +37,10 @@ flag network-uri | |||
37 | description: Use network-uri package. | 37 | description: Use network-uri package. |
38 | default: True | 38 | default: True |
39 | 39 | ||
40 | flag network-bsd | ||
41 | description: Use network-bsd package. | ||
42 | default: True | ||
43 | |||
40 | flag builder | 44 | flag builder |
41 | description: Use older bytestring package and bytestring-builder. | 45 | description: Use older bytestring package and bytestring-builder. |
42 | default: False | 46 | default: False |
@@ -227,10 +231,15 @@ library | |||
227 | if impl(ghc < 8) | 231 | if impl(ghc < 8) |
228 | Build-depends: transformers | 232 | Build-depends: transformers |
229 | 233 | ||
230 | if flag(network-uri) | 234 | if flag(network-bsd) |
231 | Build-depends: network >= 2.6 | 235 | Build-depends: network >= 3.0 |
232 | , network-uri >= 2.6 | 236 | , network-uri >= 2.6 |
237 | , network-bsd | ||
233 | else | 238 | else |
239 | if flag(network-uri) | ||
240 | Build-depends: network >= 2.6 && < 3.0 | ||
241 | , network-uri >= 2.6 | ||
242 | else | ||
234 | Build-depends: network >= 2.4 && < 2.6 | 243 | Build-depends: network >= 2.4 && < 2.6 |
235 | 244 | ||
236 | 245 | ||