Safe Haskell | None |
---|---|
Language | Haskell98 |
Some helpers to parse documents with Text.XML.Cursor.
Extract single element
readT :: Text -> Cursor -> Text Source #
Grab node content by element name.
pair cur = (readT "fst" cur, readT "snd" cur)
readC :: Read a => Text -> Cursor -> a Source #
Extract a read-able type from a content of a node with given name.
age = readC "age" :: Cursor -> Integer
Extract from multiple elements
type Dict = HashMap Text Text Source #
Very generic type to catch server reply when you don't care about types.