diff options
Diffstat (limited to 'krpc.cabal')
-rw-r--r-- | krpc.cabal | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -34,6 +34,11 @@ source-repository this | |||
34 | branch: master | 34 | branch: master |
35 | tag: v0.6.1.0 | 35 | tag: v0.6.1.0 |
36 | 36 | ||
37 | flag builder | ||
38 | description: Use older bytestring package and bytestring-builder. | ||
39 | default: False | ||
40 | |||
41 | |||
37 | library | 42 | library |
38 | default-language: Haskell2010 | 43 | default-language: Haskell2010 |
39 | default-extensions: PatternGuards | 44 | default-extensions: PatternGuards |
@@ -44,7 +49,6 @@ library | |||
44 | Network.KRPC.Method | 49 | Network.KRPC.Method |
45 | Network.KRPC.Manager | 50 | Network.KRPC.Manager |
46 | build-depends: base == 4.* | 51 | build-depends: base == 4.* |
47 | , bytestring >= 0.10 | ||
48 | , text >= 0.11 | 52 | , text >= 0.11 |
49 | , data-default-class | 53 | , data-default-class |
50 | , lifted-base >= 0.1.1 | 54 | , lifted-base >= 0.1.1 |
@@ -54,7 +58,13 @@ library | |||
54 | , monad-logger >= 0.3 | 58 | , monad-logger >= 0.3 |
55 | , bencoding >= 0.4.3 | 59 | , bencoding >= 0.4.3 |
56 | , network >= 2.3 | 60 | , network >= 2.3 |
61 | , cereal | ||
57 | , containers | 62 | , containers |
63 | if flag(builder) | ||
64 | build-depends: bytestring >= 0.9, bytestring-builder | ||
65 | else | ||
66 | build-depends: bytestring >= 0.10 | ||
67 | |||
58 | if impl(ghc < 7.6) | 68 | if impl(ghc < 7.6) |
59 | build-depends: ghc-prim | 69 | build-depends: ghc-prim |
60 | ghc-options: -Wall | 70 | ghc-options: -Wall |
@@ -89,4 +99,4 @@ benchmark bench | |||
89 | , monad-logger | 99 | , monad-logger |
90 | , criterion | 100 | , criterion |
91 | , krpc | 101 | , krpc |
92 | ghc-options: -O2 -fforce-recomp \ No newline at end of file | 102 | ghc-options: -O2 -fforce-recomp |