hexpat-lens-0.1.6: Lenses for Hexpat.

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

Text.XML.Expat.Lens.Unqualified

Contents

Description

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.

Synopsis

Basic inspection

Recursive inspection

(./) :: Plated i => Traversal' s i -> Traversal' i a -> Traversal' s a infixr 9 Source #

Filters

named :: (Eq a, Applicative f, Choice p) => a -> Optic' p f (NodeG f1 a text) (NodeG f1 a text) Source #

parameterized :: (Eq (IxValue a), Applicative f, Choice p, Ixed a) => Index a -> IxValue a -> Optic' p f a a Source #