Source

aeson / aeson.cabal

Diff from to

aeson.cabal

 name:            aeson
-version:         0.6.2.1
+version:         0.7.0.0
 license:         BSD3
 license-file:    LICENSE
 category:        Text, Web, JSON
   description: operate in developer mode
   default: False
 
+flag blaze-builder
+  description: Use blaze-builder instead of bytestring >= 0.10
+  default: False
+
 library
   exposed-modules:
     Data.Aeson
   build-depends:
     attoparsec >= 0.8.6.1,
     base == 4.*,
-    blaze-builder >= 0.2.1.4,
     bytestring,
     containers,
     deepseq,
     unordered-containers >= 0.1.3.0,
     vector >= 0.7.1
 
+  if flag(blaze-builder)
+    build-depends: blaze-builder >= 0.2.1.4
+    cpp-options: -DUSE_BLAZE_BUILDER
+  else
+    build-depends: bytestring >= 0.10
+
   if flag(developer)
     ghc-options: -Werror
     ghc-prof-options: -auto-all