lens-3.8.1: Lenses, Folds and Traversals
Data.Text.Lens
Description
Synopsis
class IsText t whereSource
Traversals for strict or lazy Text
Text
Methods
packed :: Iso' String tSource
pack (or unpack) strict or lazy Text.
pack
unpack
pack x = x ^. packed unpack x = x ^. from packed
^.
packed
from
builder :: Iso' t BuilderSource
Convert between strict or lazy Text and a Builder.
Builder
fromText x = x ^. builder
fromText
builder
text :: IndexedTraversal' Int t CharSource
Traverse the individual characters in strict or lazy Text.
Instances