-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | An "attoparsec"-based HTML tokenizer -- @package html-tokenizer @version 0.3.0.1 module HTMLTokenizer.Parser -- | An HTML token. data Token -- | An opening tag. Token_OpeningTag :: OpeningTag -> Token -- | A closing tag. Token_ClosingTag :: Identifier -> 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 = (Identifier, [Attribute], Bool) -- | A case-insensitive identifier. type Identifier = CI Text -- | A tag attribute identifier and a value. type Attribute = (Identifier, 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