tagsoup-0.10: Parsing and extracting information from (possibly malformed) HTML/XML documentsSource codeContentsIndex
Text.HTML.TagSoup.Match
Description
Combinators to match tags. Some people prefer to use (~==) from Text.HTML.TagSoup, others prefer these more structured combinators. Which you use is personal preference.
Synopsis
tagOpen :: (str -> Bool) -> ([Attribute str] -> Bool) -> Tag str -> Bool
tagClose :: (str -> Bool) -> Tag str -> Bool
tagText :: (str -> Bool) -> Tag str -> Bool
tagComment :: (str -> Bool) -> Tag str -> Bool
tagOpenLit :: Eq str => str -> ([Attribute str] -> Bool) -> Tag str -> Bool
tagCloseLit :: Eq str => str -> Tag str -> Bool
tagOpenAttrLit :: Eq str => str -> Attribute str -> Tag str -> Bool
tagOpenAttrNameLit :: Eq str => str -> str -> (str -> Bool) -> Tag str -> Bool
tagOpenNameLit :: Eq str => str -> Tag str -> Bool
tagCloseNameLit :: Eq str => str -> Tag str -> Bool
anyAttr :: ((str, str) -> Bool) -> [Attribute str] -> Bool
anyAttrName :: (str -> Bool) -> [Attribute str] -> Bool
anyAttrValue :: (str -> Bool) -> [Attribute str] -> Bool
anyAttrLit :: Eq str => (str, str) -> [Attribute str] -> Bool
anyAttrNameLit :: Eq str => str -> [Attribute str] -> Bool
anyAttrValueLit :: Eq str => str -> [Attribute str] -> Bool
getTagContent :: Eq str => str -> ([Attribute str] -> Bool) -> [Tag str] -> [Tag str]
Documentation
tagOpen :: (str -> Bool) -> ([Attribute str] -> Bool) -> Tag str -> BoolSource
match an opening tag
tagClose :: (str -> Bool) -> Tag str -> BoolSource
match an closing tag
tagText :: (str -> Bool) -> Tag str -> BoolSource
match a text
tagComment :: (str -> Bool) -> Tag str -> BoolSource
tagOpenLit :: Eq str => str -> ([Attribute str] -> Bool) -> Tag str -> BoolSource
match a opening tag's name literally
tagCloseLit :: Eq str => str -> Tag str -> BoolSource
match a closing tag's name literally
tagOpenAttrLit :: Eq str => str -> Attribute str -> Tag str -> BoolSource
tagOpenAttrNameLit :: Eq str => str -> str -> (str -> Bool) -> Tag str -> 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.
tagOpenNameLit :: Eq str => str -> Tag str -> BoolSource
Check if the 'Tag str' is TagOpen and matches the given name
tagCloseNameLit :: Eq str => str -> Tag str -> BoolSource
Check if the 'Tag str' is TagClose and matches the given name
anyAttr :: ((str, str) -> Bool) -> [Attribute str] -> BoolSource
anyAttrName :: (str -> Bool) -> [Attribute str] -> BoolSource
anyAttrValue :: (str -> Bool) -> [Attribute str] -> BoolSource
anyAttrLit :: Eq str => (str, str) -> [Attribute str] -> BoolSource
anyAttrNameLit :: Eq str => str -> [Attribute str] -> BoolSource
anyAttrValueLit :: Eq str => str -> [Attribute str] -> BoolSource
getTagContent :: Eq str => str -> ([Attribute str] -> Bool) -> [Tag str] -> [Tag str]Source
Produced by Haddock version 2.6.0