xml-1.3.13: A simple XML library.

Safe HaskellNone

Text.XML.Light.Lexer

Synopsis

Documentation

data Scanner s Source

This type may be used to provide a custom scanning function for extracting characters.

Constructors

Scanner (Maybe (Char, s)) (s -> Maybe (Char, s)) 

Instances

customScanner :: (s -> Maybe (Char, s)) -> s -> Scanner sSource

This type may be used to provide a custom scanning function for extracting characters.

tokens :: XmlSource source => source -> [Token]Source

string :: LString -> (String, LString)Source

Match the value for an attribute. For malformed XML we do our best to guess the programmer's intention.

break' :: (a -> Bool) -> [(b, a)] -> ([a], [(b, a)])Source

breakn :: (a -> Bool) -> [(b, a)] -> ([a], [(b, a)])Source

data Txt Source

Constructors

TxtBit String 
CRefBit String 

Instances