-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | An "attoparsec"-based HTML tokenizer -- @package html-tokenizer @version 0.2.1.2 module HTMLTokenizer.Parser -- | An HTML token. data Token -- | An opening tag. Token_OpeningTag :: OpeningTag -> Token -- | A closing tag. Token_ClosingTag :: ClosingTag -> Token -- | A text between tags with HTML-entities decoded. Token_Text :: Text -> Token -- | Contents of a comment. Token_Comment :: Text -> Token -- | An opening tag name, attributes and whether it is closed. type OpeningTag = (CI Text, [Attribute], Bool) -- | A closing tag name. type ClosingTag = CI Text -- | A tag attribute identifier and a value with HTML-entities decoded. type Attribute = (CI Text, Maybe Text) -- | A token parser. token :: Parser Token instance Typeable Token instance Show Token instance Ord Token instance Eq Token instance Generic Token instance Data Token instance Datatype D1Token instance Constructor C1_0Token instance Constructor C1_1Token instance Constructor C1_2Token instance Constructor C1_3Token