tagsoup-ht-0.2: alternative parser for the tagsoup package

Text.HTML.TagSoup.HT.Match

Synopsis

Documentation

open :: (String -> Bool) -> ([Attribute char] -> Bool) -> T char -> BoolSource

match an opening tag

close :: (String -> Bool) -> T char -> BoolSource

match an closing tag

text :: ([char] -> Bool) -> T char -> BoolSource

match a text

comment :: (String -> Bool) -> T char -> BoolSource

special :: (String -> Bool) -> (String -> Bool) -> T char -> BoolSource

openLit :: String -> ([Attribute char] -> Bool) -> T char -> BoolSource

match a opening tag's name literally

closeLit :: String -> T char -> BoolSource

match a closing tag's name literally

openAttrLit :: Eq char => String -> Attribute char -> T char -> BoolSource

openAttrNameLit :: String -> String -> ([char] -> Bool) -> T char -> BoolSource

Match a tag with given name, that contains an attribute with given name, that satisfies a predicate. If an attribute occurs multiple times, all occurrences are checked.

openNameLit :: String -> T char -> BoolSource

Check if the T is Open and matches the given name

closeNameLit :: String -> T char -> BoolSource

Check if the T is Close and matches the given name

anyAttr :: ((String, [char]) -> Bool) -> [Attribute char] -> BoolSource

anyAttrValue :: ([char] -> Bool) -> [Attribute char] -> BoolSource

anyAttrLit :: Eq char => (String, [char]) -> [Attribute char] -> BoolSource

anyAttrValueLit :: Eq char => [char] -> [Attribute char] -> BoolSource