lens-1.4.1: 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 :: Simple Traversal Text CharSource

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

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