tagchup-0.4.0.3: alternative package for processing of tag soups

Safe HaskellSafe-Inferred

Text.HTML.Tagchup.Tag.Match

Synopsis

Documentation

open :: (Name name -> Bool) -> ([T name string] -> Bool) -> T name string -> BoolSource

match an opening tag

close :: (Name name -> Bool) -> T name string -> BoolSource

match an closing tag

text :: (string -> Bool) -> T name string -> BoolSource

match a text

comment :: (String -> Bool) -> T name string -> BoolSource

special :: (Name name -> Bool) -> (String -> Bool) -> T name string -> BoolSource

openLit :: Tag name => String -> ([T name string] -> Bool) -> T name string -> BoolSource

match a opening tag's name literally

closeLit :: Tag name => String -> T name string -> BoolSource

match a closing tag's name literally

openAttrLit :: (Attribute name, Tag name, Eq string) => String -> String -> string -> T name string -> BoolSource

openAttrNameLit :: (Attribute name, Tag name) => String -> String -> (string -> Bool) -> T name string -> 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 :: Tag name => String -> T name string -> BoolSource

Check whether the T is Open and matches the given name

closeNameLit :: Tag name => String -> T name string -> BoolSource

Check whether the T is Close and matches the given name