mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-08 07:09:28 +03:00
fix a collision with latest regexpr package
This commit is contained in:
parent
798841a87e
commit
acbb669bcc
@ -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 =
|
||||||
|
Loading…
Reference in New Issue
Block a user