Portability | non-portable |
---|---|
Stability | experimental |
Maintainer | me@jspha.com |
Safe Haskell | None |
A simple Hexpat lens module. This is nothing more than a type-specialized re-export of Text.XML.Expat.Lens.Generic.
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)
- text :: Prism' (UNode t) t
- children :: Traversal' (UNode t) [UNode t]
- allNodes :: UNode t -> [UNode t]
- named :: (Choice p, Applicative f, Eq t) => t -> Overloaded' p f (UNode t) (UNode t)
- parameterized :: (Choice p, Applicative f, Eq t, GenericXMLString t) => t -> t -> Overloaded' p f (UNode t) (UNode t)
Basic inspection
name :: Traversal' (UNode t) tSource
attributes :: Traversal' (UNode t) (UAttributes t)Source
Recursive inspection
children :: Traversal' (UNode t) [UNode t]Source
Filters
named :: (Choice p, Applicative f, Eq t) => t -> Overloaded' p f (UNode t) (UNode t)Source
parameterized :: (Choice p, Applicative f, Eq t, GenericXMLString t) => t -> t -> Overloaded' p f (UNode t) (UNode t)Source