lens-3.0.4: Lenses, Folds and Traversals

Portabilityportable
Stabilityprovisional
MaintainerEdward Kmett <ekmett@gmail.com>
Safe HaskellNone

Data.Text.Strict.Lens

Description

 

Synopsis

Documentation

packed :: Simple Iso String TextSource

pack (or unpack) strict Text.

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

text :: SimpleIndexedTraversal Int Text CharSource

Traverse the individual characters in strict Text.

>>> anyOf text (=='o') $ "hello"^.packed
True