[ghc-hledger-lib] add pretty-show patch
Jens Petersen
petersen at fedoraproject.org
Fri Aug 29 09:20:36 UTC 2014
commit 462eeb2e01caa23d48effd7bd9b147742fa62efe
Author: Jens Petersen <petersen at redhat.com>
Date: Fri Aug 29 18:20:39 2014 +0900
add pretty-show patch
hledger-lib-pretty-show.patch | 48 +++++++++++++++++++++++++++++++++++++++++
1 files changed, 48 insertions(+), 0 deletions(-)
---
diff --git a/hledger-lib-pretty-show.patch b/hledger-lib-pretty-show.patch
new file mode 100644
index 0000000..c939fcc
--- /dev/null
+++ b/hledger-lib-pretty-show.patch
@@ -0,0 +1,48 @@
+diff -up hledger-lib-0.23.2/hledger-lib.cabal~ hledger-lib-0.23.2/hledger-lib.cabal
+--- hledger-lib-0.23.2/hledger-lib.cabal~ 2014-08-29 18:05:56.970000000 +0900
++++ hledger-lib-0.23.2/hledger-lib.cabal 2014-08-29 18:06:49.255000000 +0900
+@@ -86,8 +86,6 @@ library
+ ,transformers >= 0.2 && < 0.4
+ ,utf8-string >= 0.3.5 && < 0.4
+ ,HUnit
+- if impl(ghc >= 7.4)
+- build-depends: pretty-show >= 1.6.4
+
+ source-repository head
+ type: git
+@@ -119,8 +117,6 @@ test-suite tests
+ , test-framework-hunit
+ , time
+ , transformers
+- if impl(ghc >= 7.4)
+- build-depends: pretty-show >= 1.6.4
+
+ -- cf http://www.haskell.org/cabal/release/cabal-latest/doc/users-guide/authors.html
+
+diff -up hledger-lib-0.23.2/Hledger/Utils.hs~ hledger-lib-0.23.2/Hledger/Utils.hs
+--- hledger-lib-0.23.2/Hledger/Utils.hs~ 2014-08-29 18:05:56.947000000 +0900
++++ hledger-lib-0.23.2/Hledger/Utils.hs 2014-08-29 18:10:00.341000000 +0900
+@@ -24,9 +24,6 @@ module Hledger.Utils (---- provide these
+ -- module Data.PPrint,
+ -- module Hledger.Utils.UTF8IOCompat
+ SystemString,fromSystemString,toSystemString,error',userError',
+-#if __GLASGOW_HASKELL__ >= 704
+- ppShow
+-#endif
+ -- the rest need to be done in each module I think
+ )
+ where
+@@ -60,13 +57,8 @@ import Text.RegexPR
+ -- import Hledger.Utils.UTF8IOCompat (readFile,writeFile,appendFile,getContents,putStr,putStrLn)
+ import Hledger.Utils.UTF8IOCompat (SystemString,fromSystemString,toSystemString,error',userError')
+
+-#if __GLASGOW_HASKELL__ >= 704
+-import Text.Show.Pretty (ppShow)
+-#else
+--- the required pretty-show version requires GHC >= 7.4
+ ppShow :: Show a => a -> String
+ ppShow = show
+-#endif
+
+ -- strings
+
More information about the scm-commits
mailing list