tagchup-0.4.1.1: alternative package for processing of tag soups

Safe HaskellSafe
LanguageHaskell98

Text.HTML.Tagchup.Tag.Match

Synopsis

Documentation

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

match an opening tag

close :: (Name name -> Bool) -> T name string -> Bool Source #

match a closing tag

text :: (string -> Bool) -> T name string -> Bool Source #

match a text

comment :: (String -> Bool) -> T name string -> Bool Source #

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

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

match a opening tag's name literally

closeLit :: Tag name => String -> T name string -> Bool Source #

match a closing tag's name literally

openAttrLit :: (Attribute name, Tag name, Eq string) => String -> String -> string -> T name string -> Bool Source #

openAttrNameLit :: (Attribute name, Tag name) => String -> String -> (string -> Bool) -> T name string -> Bool Source #

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 -> Bool Source #

Check whether the T is Open and matches the given name

closeNameLit :: Tag name => String -> T name string -> Bool Source #

Check whether the T is Close and matches the given name