Safe Haskell | None |
---|
Some helpers to parse documents with Text.XML.Cursor.
Extract single element
readT :: Text -> Cursor -> TextSource
Grab node content by element name.
pair cur = (readT "fst" cur, readT "snd" cur)
readC :: Read a => Text -> Cursor -> aSource
Extract a read-able type from a content of a node with given name.
age = readC "age" :: Cursor -> Integer