Portability | non-portable |
---|---|
Stability | experimental |
Maintainer | me@jspha.com |
Safe Haskell | None |
A simple Hexpat lens module.
Lenses provide power to do very concise XML tree diving. This module provides a less general interface to the Hexpat datatypes via lenses.
- name :: Traversal' (UNode t) t
- attributes :: Traversal' (UNode t) (UAttributes t)
- children :: Traversal' (UNode t) [UNode t]
- text :: Prism' (UNode t) t
- allNodes :: UNode t -> [UNode t]
- named :: (Choice p, Applicative f, Eq t) => t -> Overloaded' p f (UNode t) (UNode t)
Documentation
name :: Traversal' (UNode t) tSource
attributes :: Traversal' (UNode t) (UAttributes t)Source
children :: Traversal' (UNode t) [UNode t]Source
text :: Prism' (UNode t) tSource
Prismatic access to the text of a Text
node. This is more
powerful than name
, children
, and attributes
since it can
be Review
ed.
named :: (Choice p, Applicative f, Eq t) => t -> Overloaded' p f (UNode t) (UNode t)Source
Traverses Element
s which have a particular name.