Safe Haskell | None |
---|
- data Matcher = Matcher {}
- data CaseSensitive
- = Sensitive
- | Insensitive
- tdfa :: CaseSensitive -> Text -> Exceptional Text Matcher
- pcre :: CaseSensitive -> Text -> Exceptional Text Matcher
- within :: CaseSensitive -> Text -> Matcher
- exact :: CaseSensitive -> Text -> Matcher
- data CompUTC
- = UAfter
- | UOnOrAfter
- | UExactly
- | UBefore
- | UOnOrBefore
- descUTC :: CompUTC -> UTCTime -> String
- compUTCtoCmp :: Ord a => CompUTC -> a -> a -> Bool
- date :: Maybe (CompUTC, UTCTime) -> Matcher
Documentation
data CaseSensitive Source
:: CaseSensitive | |
-> Text | The pattern |
-> Exceptional Text Matcher | The Matcher if the pattern is good; if the pattern is bad, returns an error message. The error message has a trailing newline. |
Uses the regular expression matcher from the regex-tdfa package. This is a POSIX extended regular expression. It should work correctly with Unicode.
:: CaseSensitive | |
-> Text | Pattern |
-> Exceptional Text Matcher | The Matcher if the pattern is good; if the pattern is bad, returns an error message. |
Uses the PCRE regular expression engine. Currently the pcre-light package is used, as it has a simpler interface than the regex-pcre-builtin. It should work correctly with Unicode.
:: CaseSensitive | |
-> Text | The pattern |
-> Matcher |
Matcher that succeeds if the pattern text is found anywhere within the subject.
exact :: CaseSensitive -> Text -> MatcherSource
Matcher that succeeds if the pattern text exactly matches the subject (with case sensitivity as appropriate.)
compUTCtoCmp :: Ord a => CompUTC -> a -> a -> BoolSource
:: Maybe (CompUTC, UTCTime) | If Nothing, any valid date and time will succeed as a match; the matcher will return False if the subject is not a valid date. If Just, the subject must be a valid date and must fit within the range indicated. |
-> Matcher |
Matcher that succeeds if the subject represents a valid date with an optional time.