Safe Haskell | Safe-Inferred |
---|
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.
- 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
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
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
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