Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Synopsis
- 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
class XmlSource s where Source #
Instances
XmlSource String Source # | |
XmlSource ByteString Source # | |
Defined in Text.XML.Light.Lexer uncons :: ByteString -> Maybe (Char, ByteString) Source # | |
XmlSource ByteString Source # | |
Defined in Text.XML.Light.Lexer uncons :: ByteString -> Maybe (Char, ByteString) Source # | |
XmlSource Text Source # | |
XmlSource Text Source # | |
XmlSource (Scanner s) Source # | |
This type may be used to provide a custom scanning function for extracting characters.
customScanner :: (s -> Maybe (Char, s)) -> s -> Scanner s Source #
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 -> String Source #
decode_text :: [Char] -> [Txt] Source #