[DHG_packages] 01/01: wreq: patch to only build with aeson-pretty >= 0.8

Clint Adams clint at moszumanska.debian.org
Sat Oct 29 23:41:22 UTC 2016


This is an automated email from the git hooks/post-receive script.

clint pushed a commit to branch master
in repository DHG_packages.

commit 66a3ee04903b9c5946cebdddb430a298c9dadb62
Author: Clint Adams <clint at debian.org>
Date:   Sat Oct 29 19:40:24 2016 -0400

    wreq: patch to only build with aeson-pretty >= 0.8
---
 p/haskell-wreq/debian/changelog                    |  6 ++++++
 .../debian/patches/aeson-pretty-portability        | 24 ++++++++++++++++++++--
 2 files changed, 28 insertions(+), 2 deletions(-)

diff --git a/p/haskell-wreq/debian/changelog b/p/haskell-wreq/debian/changelog
index 9d80f4f..31f48c9 100644
--- a/p/haskell-wreq/debian/changelog
+++ b/p/haskell-wreq/debian/changelog
@@ -1,3 +1,9 @@
+haskell-wreq (0.4.1.0-5) unstable; urgency=medium
+
+  * Patch to only build with aeson-pretty >= 0.8.
+
+ -- Clint Adams <clint at debian.org>  Sat, 29 Oct 2016 19:39:59 -0400
+
 haskell-wreq (0.4.1.0-4) unstable; urgency=medium
 
   * Patch to build with more versions of aeson-pretty.
diff --git a/p/haskell-wreq/debian/patches/aeson-pretty-portability b/p/haskell-wreq/debian/patches/aeson-pretty-portability
index 14717b3..6cdb0a6 100644
--- a/p/haskell-wreq/debian/patches/aeson-pretty-portability
+++ b/p/haskell-wreq/debian/patches/aeson-pretty-portability
@@ -5,7 +5,7 @@
  import Control.Monad.IO.Class (liftIO)
  import Data.Aeson (Value(..), eitherDecode, object, toJSON)
 -import Data.Aeson.Encode.Pretty (Config(..), encodePretty')
-+import Data.Aeson.Encode.Pretty (Config(..), defConfig, encodePretty')
++import Data.Aeson.Encode.Pretty (Config(..), Indent(Spaces), defConfig, encodePretty')
  import Data.ByteString.Char8 (pack)
  import Data.CaseInsensitive (original)
  import Data.Maybe (catMaybes, fromMaybe)
@@ -14,7 +14,27 @@
  writeJSON obj = do
    modifyResponse $ setContentType "application/json"
 -  writeLBS . (<> "\n") . encodePretty' (Config 2 compare) . object $ obj
-+  writeLBS . (<> "\n") . encodePretty' defConfig { confIndent = 2, confCompare = compare } . object $ obj
++  writeLBS . (<> "\n") . encodePretty' defConfig { confIndent = Spaces 2, confCompare = compare } . object $ obj
  
  respond act = do
    req <- getRequest
+--- a/wreq.cabal
++++ b/wreq.cabal
+@@ -135,7 +135,7 @@
+   else
+     build-depends:
+       aeson >= 0.7,
+-      aeson-pretty >= 0.7.1,
++      aeson-pretty >= 0.8.0,
+       base >= 4.5 && < 5,
+       base64-bytestring,
+       bytestring,
+@@ -178,7 +178,7 @@
+     HUnit,
+     QuickCheck >= 2.7,
+     aeson,
+-    aeson-pretty >= 0.7.1,
++    aeson-pretty >= 0.8.0,
+     base >= 4.5 && < 5,
+     base64-bytestring,
+     bytestring,

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-haskell/DHG_packages.git



More information about the Pkg-haskell-commits mailing list