regex haddock fix
This commit is contained in:
parent
3a16e6cfc7
commit
5bebc2beb0
@ -13,10 +13,6 @@ These should
|
|||||||
- support unicode
|
- support unicode
|
||||||
- be cross-platform, not requiring C libraries
|
- be cross-platform, not requiring C libraries
|
||||||
|
|
||||||
They currently can
|
|
||||||
- die on malformed regexps
|
|
||||||
- be slow (regexpr)
|
|
||||||
|
|
||||||
-}
|
-}
|
||||||
|
|
||||||
module Hledger.Utils.Regex (
|
module Hledger.Utils.Regex (
|
||||||
@ -79,15 +75,17 @@ regexSplit = splitRegexPR
|
|||||||
|
|
||||||
-- regex-tdfa
|
-- regex-tdfa
|
||||||
|
|
||||||
|
-- | Convert our string-based regexps to real ones. Can fail if the
|
||||||
|
-- string regexp is malformed.
|
||||||
|
toRegex :: Regexp -> Regex
|
||||||
|
toRegex = makeRegexOpts compOpt execOpt
|
||||||
|
|
||||||
compOpt :: CompOption
|
compOpt :: CompOption
|
||||||
compOpt = defaultCompOpt
|
compOpt = defaultCompOpt
|
||||||
|
|
||||||
execOpt :: ExecOption
|
execOpt :: ExecOption
|
||||||
execOpt = defaultExecOpt
|
execOpt = defaultExecOpt
|
||||||
|
|
||||||
toRegex :: Regexp -> Regex
|
|
||||||
toRegex = makeRegexOpts compOpt execOpt
|
|
||||||
|
|
||||||
-- regexMatch' :: RegexContext Regexp String a => Regexp -> String -> a
|
-- regexMatch' :: RegexContext Regexp String a => Regexp -> String -> a
|
||||||
-- regexMatch' r s = s =~ (toRegex r)
|
-- regexMatch' r s = s =~ (toRegex r)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user