xml-1.3.7: A simple XML library.

Safe HaskellSafe
LanguageHaskell98

Text.XML.Light.Lexer

Synopsis

Documentation

class XmlSource s where #

Minimal complete definition

uncons

Methods

uncons :: s -> Maybe (Char, s) #

type LChar = (Line, Char) #

type LString = [LChar] #

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

tag :: LString -> [Token] #

attribs :: LString -> ([Attr], Bool, [Token]) #

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

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)]) #

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

data Txt #

Constructors

TxtBit String 
CRefBit String 

Instances

Show Txt # 

Methods

showsPrec :: Int -> Txt -> ShowS #

show :: Txt -> String #

showList :: [Txt] -> ShowS #

decode_text :: [Char] -> [Txt] #