diff options
Diffstat (limited to 'bencoding.cabal')
-rw-r--r-- | bencoding.cabal | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/bencoding.cabal b/bencoding.cabal index c6fa2af..eddcd53 100644 --- a/bencoding.cabal +++ b/bencoding.cabal | |||
@@ -19,6 +19,10 @@ description: | |||
19 | extra-source-files: README.md | 19 | extra-source-files: README.md |
20 | , ChangeLog | 20 | , ChangeLog |
21 | 21 | ||
22 | flag builder | ||
23 | description: Use older bytestring package and bytestring-builder. | ||
24 | default: False | ||
25 | |||
22 | source-repository head | 26 | source-repository head |
23 | type: git | 27 | type: git |
24 | location: git://github.com/cobit/bencoding.git | 28 | location: git://github.com/cobit/bencoding.git |
@@ -41,15 +45,16 @@ library | |||
41 | build-depends: base == 4.* | 45 | build-depends: base == 4.* |
42 | , ghc-prim | 46 | , ghc-prim |
43 | , integer-gmp | 47 | , integer-gmp |
44 | , deepseq == 1.3.* | 48 | , deepseq >= 1.3 |
45 | |||
46 | , mtl | 49 | , mtl |
47 | |||
48 | , attoparsec >= 0.10 | 50 | , attoparsec >= 0.10 |
49 | , bytestring >= 0.10 | ||
50 | , text >= 0.11 | 51 | , text >= 0.11 |
51 | , pretty | 52 | , pretty |
52 | ghc-options: -Wall -O2 -fno-warn-unused-do-bind | 53 | ghc-options: -Wall -O2 -fno-warn-unused-do-bind |
54 | if flag(builder) | ||
55 | build-depends: bytestring >= 0.9, bytestring-builder | ||
56 | else | ||
57 | build-depends: bytestring >= 0.10 | ||
53 | 58 | ||
54 | 59 | ||
55 | test-suite properties | 60 | test-suite properties |
@@ -61,12 +66,15 @@ test-suite properties | |||
61 | , ghc-prim | 66 | , ghc-prim |
62 | 67 | ||
63 | , containers >= 0.4 | 68 | , containers >= 0.4 |
64 | , bytestring >= 0.10 | ||
65 | , attoparsec >= 0.10 | 69 | , attoparsec >= 0.10 |
66 | 70 | ||
67 | , bencoding | 71 | , bencoding |
68 | , hspec | 72 | , hspec |
69 | , QuickCheck | 73 | , QuickCheck |
74 | if flag(builder) | ||
75 | build-depends: bytestring >= 0.9, bytestring-builder | ||
76 | else | ||
77 | build-depends: bytestring >= 0.10 | ||
70 | 78 | ||
71 | ghc-options: -Wall -fno-warn-orphans | 79 | ghc-options: -Wall -fno-warn-orphans |
72 | 80 | ||
@@ -81,7 +89,7 @@ benchmark bench-comparison | |||
81 | , deepseq | 89 | , deepseq |
82 | 90 | ||
83 | , attoparsec >= 0.10 | 91 | , attoparsec >= 0.10 |
84 | , bytestring >= 0.10 | 92 | , bytestring >= 0.9 |
85 | 93 | ||
86 | , criterion | 94 | , criterion |
87 | 95 | ||