Safe Haskell | None |
---|
- class XmlSource s where
- linenumber :: XmlSource s => Integer -> s -> LString
- data Scanner s = Scanner (Maybe (Char, s)) (s -> Maybe (Char, s))
- customScanner :: (s -> Maybe (Char, s)) -> s -> Scanner s
- type LChar = (Line, Char)
- type LString = [LChar]
- data Token
- tokens :: XmlSource source => source -> [Token]
- tokens' :: LString -> [Token]
- special :: LChar -> LString -> [Token]
- qualName :: LString -> (QName, LString)
- tag :: LString -> [Token]
- attribs :: LString -> ([Attr], Bool, [Token])
- attrib :: LString -> (Attr, LString)
- attr_val :: LString -> (String, LString)
- dropSpace :: LString -> LString
- string :: LString -> (String, LString)
- break' :: (a -> Bool) -> [(b, a)] -> ([a], [(b, a)])
- breakn :: (a -> Bool) -> [(b, a)] -> ([a], [(b, a)])
- decode_attr :: String -> String
- data Txt
- decode_text :: [Char] -> [Txt]
- cref_to_char :: [Char] -> Maybe Char
- num_esc :: String -> Maybe Char
- cvt_char :: Int -> Maybe Char
Documentation
linenumber :: XmlSource s => Integer -> s -> LStringSource
This type may be used to provide a custom scanning function for extracting characters.
customScanner :: (s -> Maybe (Char, s)) -> s -> Scanner sSource
This type may be used to provide a custom scanning function for extracting characters.
string :: LString -> (String, LString)Source
Match the value for an attribute. For malformed XML we do our best to guess the programmer's intention.
decode_attr :: String -> StringSource
decode_text :: [Char] -> [Txt]Source
cref_to_char :: [Char] -> Maybe CharSource