:: String -> String -> Bool
This
String equality predicate is used when desugaring
pattern-matches against strings.
Check the given name against the given pattern, being case-sensitive.
The given pattern is forced to match the given name starting at the
beginning.
Check whether the first string is a prefix of the second string.
Check whether the first string is a suffix of the second string.
Check whether the first string is contains within the second string.
TODO: implemented the naive way and thus terribly inefficient,
reimplement properly
Deprecated: Use System.FilePath.equalFilePath instead.
convenient function for
matchRE
Examples:
match "x*" "xxx" = True
match "x" "xxx" = False
match "[" "xxx" = False
match with extended regular expressions
Returns True if the first argument is a subsequence of the second
argument, that is, it can be obtained from the second sequence by
deleting elements.
isLinkAttr tag attr returns
True if the attribute
attr of an HTML element with tag name
tag points to
an external resource, and
False otherwise. So for example
isLinkAttr "a" "href" returns
True whereas
isLinkAttr "a" "class" returns
False. Note that
isLinkAttr expects both
tag and
attr to be in
lowercase, so for example
isLinkAttr "A" "HREF" returns
False.
Generate a usage error with the given supplementary message string.