summaryrefslogtreecommitdiff
path: root/bittorrent.cabal
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2016-12-31 17:48:34 -0500
committerjoe <joe@jerkface.net>2016-12-31 17:48:34 -0500
commit1d9049d914ccc9b66ff33e764618e8301d0b1ccf (patch)
treed2b6631b8bbc4fe094d848f08ccf22afa3d86738 /bittorrent.cabal
parent6db720421a4fbfda957e7199464f16b6f261b40a (diff)
Made bits-extras dependency optional.
Diffstat (limited to 'bittorrent.cabal')
-rw-r--r--bittorrent.cabal14
1 files changed, 10 insertions, 4 deletions
diff --git a/bittorrent.cabal b/bittorrent.cabal
index efc1cb0d..a09d4530 100644
--- a/bittorrent.cabal
+++ b/bittorrent.cabal
@@ -46,6 +46,10 @@ flag network-uri
46 description: Use network-uri package. 46 description: Use network-uri package.
47 default: True 47 default: True
48 48
49flag bits-extras
50 description: Use more-effecient bits-extras bitwise operations.
51 default: False
52
49library 53library
50 default-language: Haskell2010 54 default-language: Haskell2010
51 default-extensions: PatternGuards 55 default-extensions: PatternGuards
@@ -97,9 +101,7 @@ library
97 System.Torrent.FileMap 101 System.Torrent.FileMap
98 System.Torrent.Tree 102 System.Torrent.Tree
99 103
100 build-depends: base == 4.* 104 build-depends: lifted-base
101 , lifted-base
102 , bits-extras >= 0.1.2
103 , convertible >= 1.0 105 , convertible >= 1.0
104 , pretty >= 1.1 106 , pretty >= 1.1
105 107
@@ -171,12 +173,16 @@ library
171 , directory >= 1.2 173 , directory >= 1.2
172 , filepath >= 1.3 174 , filepath >= 1.3
173 , mmap >= 0.5 175 , mmap >= 0.5
174
175 if flag(network-uri) 176 if flag(network-uri)
176 Build-depends: network >= 2.6 177 Build-depends: network >= 2.6
177 , network-uri >= 2.6 178 , network-uri >= 2.6
178 else 179 else
179 Build-depends: network >= 2.4 && < 2.6 180 Build-depends: network >= 2.4 && < 2.6
181 if flag(bits-extras)
182 build-depends: base == 4.*
183 , bits-extras >= 0.1.2
184 else
185 build-depends: base >= 4.8
180 186
181 ghc-options: -Wall 187 ghc-options: -Wall
182 ghc-prof-options: 188 ghc-prof-options: