Portability | portable |
---|---|
Stability | experimental |
Maintainer | bos@serpentine.com, rtharper@aftereternity.co.uk, duncan@haskell.org |
Data.Text.Lazy.Encoding.Fusion
Contents
Description
Fusible Stream
-oriented functions for converting between lazy
Text
and several common encodings.
- streamUtf8 :: OnDecodeError -> ByteString -> Stream Char
- unstream :: Stream Word8 -> ByteString
- restreamUtf8 :: Stream Char -> Stream Word8
- restreamUtf16LE :: Stream Char -> Stream Word8
- restreamUtf16BE :: Stream Char -> Stream Word8
- restreamUtf32LE :: Stream Char -> Stream Word8
- restreamUtf32BE :: Stream Char -> Stream Word8
Streaming
streamUtf8 :: OnDecodeError -> ByteString -> Stream CharSource
O(n) Convert a lazy ByteString
into a 'Stream Char', using
UTF-8 encoding.
Unstreaming
unstream :: Stream Word8 -> ByteStringSource
O(n) Convert a Stream
Word8
to a lazy ByteString
.