lens-3.8: Lenses, Folds and Traversals
Data.Text.Strict.Lens
Description
Synopsis
packed :: Iso' String TextSource
pack (or unpack) strict Text.
pack
unpack
Text
pack x ≡ x ^. packed unpack x ≡ x ^. from packed
^.
packed
from
builder :: Iso' Text BuilderSource
Convert between strict Text and Builder .
Builder
fromText x ≡ x ^. builder toStrict (toLazyText x) ≡ x ^. from builder
fromText
builder
toStrict
toLazyText
text :: IndexedTraversal' Int Text CharSource
Traverse the individual characters in strict Text.
>>> anyOf text (=='o') $ "hello"^.packed True
>>>
anyOf text (=='o') $ "hello"^.packed