diff options
author | Joe Crayne <joe@jerkface.net> | 2019-07-09 16:21:57 -0400 |
---|---|---|
committer | Joe Crayne <joe@jerkface.net> | 2019-07-09 16:21:57 -0400 |
commit | ec1dc3a951866e3615c0ef3b8b864b6f10619f59 (patch) | |
tree | 0c8e70a0b4ef43f4a6cc0392baa63de65801cfe1 /dht-client.cabal | |
parent | ea0c49c6e4bf6d0068ebcd8ea26647adff0e7247 (diff) |
Use spinoff library network-bsd when appropriate.
Diffstat (limited to 'dht-client.cabal')
-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 | ||