summaryrefslogtreecommitdiff
path: root/krpc.cabal
diff options
context:
space:
mode:
Diffstat (limited to 'krpc.cabal')
-rw-r--r--krpc.cabal7
1 files changed, 7 insertions, 0 deletions
diff --git a/krpc.cabal b/krpc.cabal
index 66c08ccb..452f1132 100644
--- a/krpc.cabal
+++ b/krpc.cabal
@@ -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
41flag aeson
42 description: Use aeson for pretty-printing bencoded data.
43 default: True
41 44
42library 45library
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