Safe Haskell | None |
---|
- class ToNodes a where
- (.=:) :: Name -> [Node] -> [Node]
- (.=) :: Name -> Text -> Node
- class ToAttribute a where
- toAttribute :: a -> (Name, Text)
- class FromCursor a where
- fromCursor :: Cursor -> a
- readT :: Text -> Cursor -> Text
- readC :: Read a => Text -> Cursor -> a
- readContent :: Read a => Cursor -> a
- type Dict = HashMap Text Text
- asDict :: Axis -> Cursor -> Dict
Documentation
Convert data to a Node list. One of the functions should be provided with others building up on it.
Only use toNodes
to obtain a Node list.
class ToAttribute a whereSource
toAttribute :: a -> (Name, Text)Source
class FromCursor a whereSource
fromCursor :: Cursor -> aSource
FromCursor Dict | |
(FromCursor a, FromCursor b) => FromCursor (a, b) | |
(FromCursor a, FromCursor b, FromCursor c) => FromCursor (a, b, c) |
readContent :: Read a => Cursor -> aSource