Copyright | (C) 2012-15 Edward Kmett |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | Edward Kmett <ekmett@gmail.com> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell98 |
Documentation
Traversals for strict or lazy Text
packed :: Iso' String t Source
This isomorphism can be used to pack
(or unpack
) strict or lazy Text
.
pack
x ≡ x^.
packed
unpack
x ≡ x^.
from
packed
packed
≡from
unpacked
builder :: Iso' t Builder Source
Convert between strict or lazy Text
and a Builder
.
fromText
x ≡ x^.
builder
text :: IndexedTraversal' Int t Char Source