matchers-0.16.0.0: Text matchers

Safe HaskellNone

Text.Matchers

Synopsis

Documentation

pcreSource

Arguments

:: CaseSensitive 
-> Text

Pattern

-> Either Text (Pdct Text)

The Pdct 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

-> Pdct Text 

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

exact :: CaseSensitive -> Text -> Pdct TextSource

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

anyTime :: Pdct TextSource

Matches any valid time.

timeSource

Arguments

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

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