From acbb669bcc1596b54881277a9a7db1b3a2e1b689 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Thu, 11 Dec 2008 20:07:06 +0000 Subject: [PATCH] fix a collision with latest regexpr package --- Ledger/Utils.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Ledger/Utils.hs b/Ledger/Utils.hs index 47b07e599..783912c04 100644 --- a/Ledger/Utils.hs +++ b/Ledger/Utils.hs @@ -36,7 +36,7 @@ import Debug.Trace import Test.HUnit import Text.Printf import Text.Regex -import Text.RegexPR +import Text.RegexPR hiding (gsubRegexPRBy) import Text.ParserCombinators.Parsec @@ -120,6 +120,7 @@ containsRegex r s = case matchRegex r s of Just _ -> True otherwise -> False +-- regexpr-0.5.1 includes this now, keep a little longer to minimise installation pain -- | Replace all occurrences of a regexp in string using the given replacement function gsubRegexPRBy :: String -> (String -> String) -> String -> String gsubRegexPRBy pat f str =