lens-2.1: Lenses, Folds and Traversals

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

Data.Text.Lazy.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 Text.

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