summaryrefslogtreecommitdiff
path: root/dht-client.cabal
diff options
context:
space:
mode:
authorJames Crayne <jim.crayne@gmail.com>2017-09-23 03:37:29 +0000
committerJames Crayne <jim.crayne@gmail.com>2017-09-23 03:38:24 +0000
commit210b728fea751b7963323578a727eb173149c8d0 (patch)
tree3b57bdc5854d2cade31212b094faa7a726fc2939 /dht-client.cabal
parent84207ee6d28a44bb6eaaa6efe0cd3ffd88affcd0 (diff)
fix build on ghc-7.10.3
Diffstat (limited to 'dht-client.cabal')
-rw-r--r--dht-client.cabal19
1 files changed, 11 insertions, 8 deletions
diff --git a/dht-client.cabal b/dht-client.cabal
index 58024840..2b9026ad 100644
--- a/dht-client.cabal
+++ b/dht-client.cabal
@@ -6,9 +6,9 @@ author: Joe Crayne
6maintainer: Joe Crayne 6maintainer: Joe Crayne
7copyright: (c) 2017 Joe Crayne, (c) 2013, Sam Truzjan 7copyright: (c) 2017 Joe Crayne, (c) 2013, Sam Truzjan
8category: Network 8category: Network
9build-type: Simple 9build-type: Custom
10cabal-version: >= 1.10 10cabal-version: >= 1.10
11tested-with: GHC == 8.0.2 11tested-with: GHC == 8.0.2, GHC == 7.10.3
12homepage: https://github.com/cobit/bittorrent 12homepage: https://github.com/cobit/bittorrent
13bug-reports: https://github.com/cobit/bittorrent/issues 13bug-reports: https://github.com/cobit/bittorrent/issues
14synopsis: BitTorrent DHT protocol implementation. 14synopsis: BitTorrent DHT protocol implementation.
@@ -44,9 +44,9 @@ flag builder
44 description: Use older bytestring package and bytestring-builder. 44 description: Use older bytestring package and bytestring-builder.
45 default: False 45 default: False
46 46
47flag aeson 47-- flag aeson
48 description: Use aeson for pretty-printing bencoded data. 48-- description: Use aeson for pretty-printing bencoded data.
49 default: True 49-- default: True
50 50
51flag thread-debug 51flag thread-debug
52 description: Add instrumentation to threads. 52 description: Add instrumentation to threads.
@@ -132,6 +132,9 @@ library
132 , transformers-base 132 , transformers-base
133 , mtl 133 , mtl
134 134
135 if impl(ghc < 8)
136 Build-depends: transformers
137
135 if flag(network-uri) 138 if flag(network-uri)
136 Build-depends: network >= 2.6 139 Build-depends: network >= 2.6
137 , network-uri >= 2.6 140 , network-uri >= 2.6
@@ -154,9 +157,9 @@ library
154 157
155 C-sources: cbits/cryptonite_xsalsa.c, cbits/cryptonite_salsa.c 158 C-sources: cbits/cryptonite_xsalsa.c, cbits/cryptonite_salsa.c
156 159
157 if flag(aeson) 160 -- if flag(aeson)
158 build-depends: aeson, aeson-pretty, unordered-containers, vector 161 build-depends: aeson, aeson-pretty, unordered-containers, vector
159 cpp-options: -DBENCODE_AESON 162 cpp-options: -DBENCODE_AESON
160 if flag(thread-debug) 163 if flag(thread-debug)
161 exposed-modules: Control.Concurrent.Lifted.Instrument 164 exposed-modules: Control.Concurrent.Lifted.Instrument
162 Control.Concurrent.Async.Lifted.Instrument 165 Control.Concurrent.Async.Lifted.Instrument