mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-08 07:09:28 +03:00
regex haddock fix
This commit is contained in:
parent
3a16e6cfc7
commit
5bebc2beb0
@ -13,10 +13,6 @@ These should
|
||||
- support unicode
|
||||
- be cross-platform, not requiring C libraries
|
||||
|
||||
They currently can
|
||||
- die on malformed regexps
|
||||
- be slow (regexpr)
|
||||
|
||||
-}
|
||||
|
||||
module Hledger.Utils.Regex (
|
||||
@ -79,15 +75,17 @@ regexSplit = splitRegexPR
|
||||
|
||||
-- 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 = defaultCompOpt
|
||||
|
||||
execOpt :: ExecOption
|
||||
execOpt = defaultExecOpt
|
||||
|
||||
toRegex :: Regexp -> Regex
|
||||
toRegex = makeRegexOpts compOpt execOpt
|
||||
|
||||
-- regexMatch' :: RegexContext Regexp String a => Regexp -> String -> a
|
||||
-- regexMatch' r s = s =~ (toRegex r)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user