lens-1.9.1: Lenses, Folds and Traversals

Portabilityportable
Stabilityprovisional
MaintainerEdward Kmett <ekmett@gmail.com>
Safe HaskellSafe-Infered

Data.Pair.Lens

Description

Lenses for working with products.

Due to their ubiquity, _1 and _2 are defined in Control.Lens.

Synopsis

Documentation

both :: Traversal (a, a) (b, b) a bSource

Traverse both parts of a tuple with matching types.

value :: (k -> Bool) -> SimpleIndexedTraversal k (k, v) vSource

This provides a Traversal that checks a predicate on a key before allowing you to traverse into a value.