lens-2.6: Lenses, Folds and Traversals

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

Data.Text.Lens

Description

 

Synopsis

Documentation

class IsText t whereSource

Traversals for strict or lazy Text

Methods

packed :: Simple Iso String tSource

pack (or unpack) strict or lazy Text.

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

text :: SimpleIndexedTraversal Int t CharSource

Traverse the individual characters in strict or lazy Text.

Instances