matchers-0.18.0.0: Text matchers

Safe HaskellNone

Text.Matchers

Synopsis

Documentation

pcreSource

Arguments

:: CaseSensitive 
-> Text

Pattern

-> Either Text (Predbox Text)

The Predbox if the pattern is good; if the pattern is bad, returns an error message.

Uses the PCRE regular expression engine.

withinSource

Arguments

:: CaseSensitive 
-> Text

The pattern

-> Predbox Text 

Matcher that succeeds if the pattern text is found anywhere within the subject.

exact :: CaseSensitive -> Text -> Predbox TextSource

Matcher that succeeds if the pattern text exactly matches the subject (with case sensitivity as appropriate.)

anyTime :: Predbox TextSource

Matches any valid time.

timeSource

Arguments

:: Ordering
r
-> UTCTime
t
-> Predbox Text 

If the given ordering is r, the given time is t, and the time of the subject is s, the Predbox returns compare s t == r. Always returns False if the subject is not a valid time.