hexpat-lens-0.1.1: Lenses for Hexpat.

Copyright(c) 2013, Joseph Abrahamson
LicenseMIT
Maintainerme@jspha.com
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

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 where Source

Methods

localPart :: Lens' (a t) t Source