lens-2.0: Lenses, Folds and Traversals

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

Data.Text.Lens

Description

 

Synopsis

Documentation

packed :: Simple Iso String TextSource

Pack (or unpack) Text.

 pack x = x^.packed
 unpack x = x^.from packed

text :: SimpleIndexedTraversal Int Text CharSource

Traverse the individual characters in a either strict or lazy Text.

 anyOf text (=='c') :: Text -> Bool