hexpat-lens-0.0.7: Lenses for Hexpat.

Portabilitynon-portable
Stabilityexperimental
Maintainerme@jspha.com
Safe HaskellNone

Text.XML.Expat.Lens.Names

Description

Isos on QNames and NNames.

Lenses will provide the power to do very concise XML tree diving. This module provides a less general interface to the Hexpat datatypes via lenses.

Synopsis

Documentation

prefix :: Lens' (QName text) (Maybe text)Source

namespace :: Lens' (NName text) (Maybe text)Source

qualified :: (GenericXMLString text, NodeClass n c) => Iso' (n c text text) (n c (QName text) text)Source

Iso between a node marked by a stringy name to one using a qualified QName.

namespaced :: (GenericXMLString text, NodeClass n c, Show text, Ord text, NFData (n c (NName text) text)) => Prism' (n c (QName text) text) (n c (NName text) text)Source

Prism between a node marked by a qualified QName name to one using a namespaced NName. Normally this throws an exception if the namespace is non-standard, but here the Prism simply fails if incompatible.

class HasLocalPart a whereSource

Methods

localPart :: Lens' (a t) tSource