lens-3.6.0.4: Lenses, Folds and Traversals

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

Data.Text.Lazy.Lens

Description

 

Synopsis

Documentation

packed :: Simple Iso String TextSource

Pack (or unpack) lazy Text.

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

text :: SimpleIndexedTraversal Int Text CharSource

Traverse the individual characters in a Text.

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