lens-3.1: Lenses, Folds and Traversals
Data.Text.Strict.Lens
Description
Synopsis
packed :: Simple Iso String TextSource
pack (or unpack) strict Text.
pack
unpack
Text
pack x = x ^. packed unpack x = x ^. from packed
^.
packed
from
text :: SimpleIndexedTraversal Int Text CharSource
Traverse the individual characters in strict Text.
>>> anyOf text (=='o') $ "hello"^.packed True
>>>
anyOf text (=='o') $ "hello"^.packed