fix a collision with latest regexpr package

This commit is contained in:
Simon Michael 2008-12-11 20:07:06 +00:00
parent 798841a87e
commit acbb669bcc

View File

@ -36,7 +36,7 @@ import Debug.Trace
import Test.HUnit import Test.HUnit
import Text.Printf import Text.Printf
import Text.Regex import Text.Regex
import Text.RegexPR import Text.RegexPR hiding (gsubRegexPRBy)
import Text.ParserCombinators.Parsec import Text.ParserCombinators.Parsec
@ -120,6 +120,7 @@ containsRegex r s = case matchRegex r s of
Just _ -> True Just _ -> True
otherwise -> False 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 -- | Replace all occurrences of a regexp in string using the given replacement function
gsubRegexPRBy :: String -> (String -> String) -> String -> String gsubRegexPRBy :: String -> (String -> String) -> String -> String
gsubRegexPRBy pat f str = gsubRegexPRBy pat f str =