lens-3.8.2: Lenses, Folds and Traversals

Portabilitynon-portable
Stabilityexperimental
MaintainerEdward Kmett <ekmett@gmail.com>
Safe HaskellTrustworthy

Data.Text.Strict.Lens

Description

 

Synopsis

Documentation

builder :: Iso' Text BuilderSource

Convert between strict Text and Builder .

 fromText x ≡ x ^. builder
 toStrict (toLazyText x) ≡ x ^. from builder

text :: IndexedTraversal' Int Text CharSource

Traverse the individual characters in strict Text.

>>> anyOf text (=='o') $ "hello"^.packed
True