| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.Text.Strict.Optics
Description
This module provides Isos for converting strict Text to or from a
String or Builder, and an IxTraversal for traversing the individual
characters of a Text.
If you need to work with both strict and lazy text, Data.Text.Optics provides combinators that support both varieties using a typeclass.
Documentation
utf8 :: Prism' ByteString Text Source #
Encode/Decode a strict Text to/from strict ByteString, via UTF-8.
>>>utf8 # Strict.pack "☃""\226\152\131"