diff options
Diffstat (limited to 'krpc.cabal')
-rw-r--r-- | krpc.cabal | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -38,6 +38,9 @@ flag builder | |||
38 | description: Use older bytestring package and bytestring-builder. | 38 | description: Use older bytestring package and bytestring-builder. |
39 | default: False | 39 | default: False |
40 | 40 | ||
41 | flag aeson | ||
42 | description: Use aeson for pretty-printing bencoded data. | ||
43 | default: True | ||
41 | 44 | ||
42 | library | 45 | library |
43 | default-language: Haskell2010 | 46 | default-language: Haskell2010 |
@@ -48,6 +51,7 @@ library | |||
48 | Network.KRPC.Message | 51 | Network.KRPC.Message |
49 | Network.KRPC.Method | 52 | Network.KRPC.Method |
50 | Network.KRPC.Manager | 53 | Network.KRPC.Manager |
54 | Data.BEncode.Pretty | ||
51 | build-depends: base == 4.* | 55 | build-depends: base == 4.* |
52 | , text >= 0.11 | 56 | , text >= 0.11 |
53 | , data-default-class | 57 | , data-default-class |
@@ -60,6 +64,9 @@ library | |||
60 | , network >= 2.3 | 64 | , network >= 2.3 |
61 | , cereal | 65 | , cereal |
62 | , containers | 66 | , containers |
67 | if flag(aeson) | ||
68 | build-depends: aeson, aeson-pretty, unordered-containers, vector | ||
69 | ghc-options: -DBENCODE_AESON | ||
63 | if flag(builder) | 70 | if flag(builder) |
64 | build-depends: bytestring >= 0.9, bytestring-builder | 71 | build-depends: bytestring >= 0.9, bytestring-builder |
65 | else | 72 | else |