wraxml-0.4.3: Lazy wrapper to HaXML, HXT, TagSoup via custom XML tree structureSource codeContentsIndex
Text.XML.WraXML.String
Synopsis
type T = [Atom]
type EmbeddedExceptions = [Exceptional String Char]
type Atom = T
type Encoding = String
type Encoded = String
fromString :: String -> T
diffFromString :: String -> T -> T
fromUnicodeString :: String -> T
toUnicodeStringOrFormat :: T -> String
toUnicodeStringEmbedMessage :: T -> String
toUnicodeString :: T -> String
toUnicodeStringEmbedException :: T -> EmbeddedExceptions
isoLatin1ToUnicodeString :: T -> String
utf8ToUnicodeString :: T -> String
readHex :: Num a => String -> a
parse :: String -> T
parseAux :: (Char -> Bool) -> (String -> T) -> String -> String -> T
reduceRefs :: T -> T
replaceUTF8ByUnicode :: T -> T
mapUnicodeRuns :: (String -> String) -> T -> T
uStringWithErrorsMergePlainChars :: EmbeddedExceptions -> [Exceptional String String]
evalDecodeAdaptive :: State (Encoded -> String) a -> a
liftFromUnicode :: (String -> String) -> T -> T
liftFromUnicodeA :: Applicative m => (String -> m String) -> T -> m T
Documentation
type T = [Atom]Source
type EmbeddedExceptions = [Exceptional String Char]Source
type Atom = TSource
type Encoding = StringSource
should be an abstract type
type Encoded = StringSource
should be [Word8]
fromString :: String -> TSource
Literal translation from pure strings. This can only work, if the string does not contain special characters.
diffFromString :: String -> T -> TSource
fromUnicodeString :: String -> TSource
default routine
toUnicodeStringOrFormat :: T -> StringSource
toUnicodeStringEmbedMessage :: T -> StringSource
toUnicodeString :: T -> StringSource
Errors in on resolution of references yield undefined elements.
toUnicodeStringEmbedException :: T -> EmbeddedExceptionsSource
isoLatin1ToUnicodeString :: T -> StringSource
Interpret the XML string as mixture of ISO-Latin-1 characters and XML entities and convert that to a Unicode string.
utf8ToUnicodeString :: T -> StringSource
Interpret the XML string as mixture of UTF-8 characters and XML entities and convert that to a Unicode string.
readHex :: Num a => String -> aSource
parse :: String -> TSource
Caution: There is a memory leak for the case that entity references are huge.
parseAux :: (Char -> Bool) -> (String -> T) -> String -> String -> TSource
reduceRefs :: T -> TSource
replaceUTF8ByUnicode :: T -> TSource
Consider the XmlString as a mixture of XML entities and UTF-8 characters. Replace UTF-8 characters by Unicode representations.
mapUnicodeRuns :: (String -> String) -> T -> TSource
uStringWithErrorsMergePlainChars :: EmbeddedExceptions -> [Exceptional String String]Source
evalDecodeAdaptive :: State (Encoded -> String) a -> aSource
liftFromUnicode :: (String -> String) -> T -> TSource
liftFromUnicodeA :: Applicative m => (String -> m String) -> T -> m TSource
Produced by Haddock version 2.6.0