[Pkg-haskell-commits] [package-plan] 355/457: hledger-lib patches

Joachim Breitner nomeata at moszumanska.debian.org
Mon Apr 14 20:05:48 UTC 2014


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

nomeata pushed a commit to branch master
in repository package-plan.

commit a2e3fc440d4f6d0388a420a6d3cd4b92aa10020a
Author: Clint Adams <clint at debian.org>
Date:   Sat Dec 28 20:41:01 2013 +0000

    hledger-lib patches
---
 patches/hledger-lib/regex-tdfa | 54 ++++++++++++++++++++++++++++++++++++++++++
 patches/hledger-lib/series     |  1 +
 2 files changed, 55 insertions(+)

diff --git a/patches/hledger-lib/regex-tdfa b/patches/hledger-lib/regex-tdfa
new file mode 100644
index 0000000..44da6d9
--- /dev/null
+++ b/patches/hledger-lib/regex-tdfa
@@ -0,0 +1,54 @@
+From 7f2ffe2e45e689a6f028f9dc23bee5dafa24f867 Mon Sep 17 00:00:00 2001
+From: Clint Adams <clint at debian.org>
+Date: Sat, 28 Dec 2013 13:31:58 -0500
+Subject: [PATCH] Use regex-tdfa instead of regex-compat-tdfa
+
+---
+ hledger-lib/Hledger/Utils.hs  | 6 +++---
+ hledger-lib/hledger-lib.cabal | 4 ++--
+ 2 files changed, 5 insertions(+), 5 deletions(-)
+
+--- a/Hledger/Utils.hs
++++ b/Hledger/Utils.hs
+@@ -51,7 +51,7 @@
+ import Test.HUnit
+ import Text.ParserCombinators.Parsec
+ import Text.Printf
+-import Text.Regex
++import Text.Regex.TDFA
+ import Text.RegexPR
+ import Text.Show.Pretty
+ -- import qualified Data.Map as Map
+@@ -246,10 +246,10 @@
+ 
+ -- regex-compat (regex-posix) functions that perform better than regexpr.
+ regexMatchesRegexCompat :: String -> String -> Bool
+-regexMatchesRegexCompat r = isJust . matchRegex (mkRegex r)
++regexMatchesRegexCompat = flip (=~)
+ 
+ regexMatchesCIRegexCompat :: String -> String -> Bool
+-regexMatchesCIRegexCompat r = isJust . matchRegex (mkRegexWithOpts r True False)
++regexMatchesCIRegexCompat r = match (makeRegexOpts defaultCompOpt { multiline = True, caseSensitive = False, newSyntax = True } defaultExecOpt r)
+ 
+ -- lists
+ 
+--- a/hledger-lib.cabal
++++ b/hledger-lib.cabal
+@@ -68,7 +68,7 @@
+                  ,old-time
+                  ,parsec
+                  ,pretty-show
+-                 ,regex-compat-tdfa == 0.95.*
++                 ,regex-tdfa
+                  ,regexpr >= 0.5.1
+                  ,safe >= 0.2
+                  ,split >= 0.1 && < 0.3
+@@ -100,7 +100,7 @@
+                , old-time
+                , parsec
+                , pretty-show
+-               , regex-compat-tdfa
++               , regex-tdfa
+                , regexpr
+                , safe
+                , split
diff --git a/patches/hledger-lib/series b/patches/hledger-lib/series
new file mode 100644
index 0000000..2c21b35
--- /dev/null
+++ b/patches/hledger-lib/series
@@ -0,0 +1 @@
+regex-tdfa

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



More information about the Pkg-haskell-commits mailing list