Copyright | (C) 2012-2015 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
text :: IndexedTraversal' Int Text Char Source
utf8 :: Prism' ByteString Text Source
EncodeDecode a lazy Text
tofrom lazy ByteString
, via UTF-8.
Note: This function does not decode lazily, as it must consume the entire input before deciding whether or not it fails.
>>>
ByteString.unpack (utf8 # "☃")
[226,152,131]