-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Bindings for the libXML2 SAX interface -- -- Bindings for the libXML2 SAX interface @package libxml-sax @version 0.5 -- | Bindings for the libXML2 SAX interface module Text.XML.LibXML.SAX data Parser s data ParserCallbacks s ParserCallbacks :: (Name -> [Attribute] -> ST s ()) -> (Name -> ST s ()) -> (Text -> ST s ()) -> (Text -> ST s ()) -> (Instruction -> ST s ()) -> ParserCallbacks s parsedBeginElement :: ParserCallbacks s -> Name -> [Attribute] -> ST s () parsedEndElement :: ParserCallbacks s -> Name -> ST s () parsedCharacters :: ParserCallbacks s -> Text -> ST s () parsedComment :: ParserCallbacks s -> Text -> ST s () parsedProcessingInstruction :: ParserCallbacks s -> Instruction -> ST s () newParser :: ParserCallbacks s -> (Text -> ST s ()) -> Maybe Text -> ST s (Parser s) -- | Feed some text into the parser. This may be performed multiple times -- per Parser value, in which case the internal parser state is -- retained between computations. parse :: Parser s -> ByteString -> ST s () -- | Finish parsing any buffered data, and check that the document was -- closed correctly. parseComplete :: Parser s -> ST s ()