Copyright | Copyright (C) 2010 Uwe Schmidt |
---|---|
License | MIT |
Maintainer | Uwe Schmidt (uwe@fh-wedel.de) |
Stability | stable |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
UTF-8 character parser and simple XML token parsers
Synopsis
- type XParser s a = GenParser Char (XPState s) a
- type SimpleXParser a = XParser () a
- data XPState s = XPState {
- xps_normalizeNewline :: !Bool
- xps_userState :: s
- withNormNewline :: a -> XPState a
- withoutNormNewline :: a -> XPState a
- xmlChar :: XParser s Unicode
- xmlNameChar :: XParser s Unicode
- xmlNameStartChar :: XParser s Unicode
- xmlNCNameChar :: XParser s Unicode
- xmlNCNameStartChar :: XParser s Unicode
- xmlLetter :: XParser s Unicode
- xmlSpaceChar :: XParser s Char
- xmlCRLFChar :: XParser s Char
Documentation
type SimpleXParser a = XParser () a Source #
XPState | |
|
withNormNewline :: a -> XPState a Source #
withoutNormNewline :: a -> XPState a Source #
xmlNameChar :: XParser s Unicode Source #
parse a XML name character
xmlNameStartChar :: XParser s Unicode Source #
parse a XML name start character
xmlNCNameChar :: XParser s Unicode Source #
parse a XML NCName character
xmlNCNameStartChar :: XParser s Unicode Source #
parse a XML NCName start character
xmlSpaceChar :: XParser s Char Source #
White Space (2.3)
end of line handling (2.11) will be done before or with xmlCRLFChar
parser
xmlCRLFChar :: XParser s Char Source #
White Space Normalization
end of line handling (2.11) #x0D and #x0D#x0A are mapped to #x0A