diff options
author | James Crayne <jim.crayne@gmail.com> | 2017-09-23 03:37:29 +0000 |
---|---|---|
committer | James Crayne <jim.crayne@gmail.com> | 2017-09-23 03:38:24 +0000 |
commit | 210b728fea751b7963323578a727eb173149c8d0 (patch) | |
tree | 3b57bdc5854d2cade31212b094faa7a726fc2939 /dht-client.cabal | |
parent | 84207ee6d28a44bb6eaaa6efe0cd3ffd88affcd0 (diff) |
fix build on ghc-7.10.3
Diffstat (limited to 'dht-client.cabal')
-rw-r--r-- | dht-client.cabal | 19 |
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 | |||
6 | maintainer: Joe Crayne | 6 | maintainer: Joe Crayne |
7 | copyright: (c) 2017 Joe Crayne, (c) 2013, Sam Truzjan | 7 | copyright: (c) 2017 Joe Crayne, (c) 2013, Sam Truzjan |
8 | category: Network | 8 | category: Network |
9 | build-type: Simple | 9 | build-type: Custom |
10 | cabal-version: >= 1.10 | 10 | cabal-version: >= 1.10 |
11 | tested-with: GHC == 8.0.2 | 11 | tested-with: GHC == 8.0.2, GHC == 7.10.3 |
12 | homepage: https://github.com/cobit/bittorrent | 12 | homepage: https://github.com/cobit/bittorrent |
13 | bug-reports: https://github.com/cobit/bittorrent/issues | 13 | bug-reports: https://github.com/cobit/bittorrent/issues |
14 | synopsis: BitTorrent DHT protocol implementation. | 14 | synopsis: 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 | ||
47 | flag 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 | ||
51 | flag thread-debug | 51 | flag 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 |