Community
Modules 50

Data.Text.Internal.Lazy.Encoding.Fusion

experimental

Warning: this is an internal module, and does not have a stable API or name. Functions in this module may not check or enforce preconditions expected by public modules. Use at your own risk!

Fusible Stream-oriented functions for converting between lazy Text and several common encodings.

Streaming

streamASCII

streamUtf8 :: OnDecodeError -> ByteString -> Stream Char

O(n) Convert a lazy ByteString into a 'Stream Char', using UTF-8 encoding.

streamUtf16LE :: OnDecodeError -> ByteString -> Stream Char

O(n) Convert a ByteString into a 'Stream Char', using little endian UTF-16 encoding.

streamUtf16BE :: OnDecodeError -> ByteString -> Stream Char

O(n) Convert a ByteString into a 'Stream Char', using big endian UTF-16 encoding.

streamUtf32LE :: OnDecodeError -> ByteString -> Stream Char

O(n) Convert a ByteString into a 'Stream Char', using little endian UTF-32 encoding.

streamUtf32BE :: OnDecodeError -> ByteString -> Stream Char

O(n) Convert a ByteString into a 'Stream Char', using big endian UTF-32 encoding.

Unstreaming

unstream :: Stream Word8 -> ByteString

O(n) Convert a Stream Word8 to a lazy ByteString.

module Data.Text.Internal.Encoding.Fusion.Common text-2.1.4 · 4 declarations
Maintainer
bos@serpentine.com
Portability
portable
Copyright
(c) 2009, 2010 Bryan O'Sullivan
License
BSD-style
Build record and source files

Community contribution. The service has not verified this documentation. The generator reported 2 diagnostics.

Target: Linux on x86-64. Some inferred types and resolved links are not available.

Generator: aihc-haddock-858b1951-web-1

Metadata snapshot: 0b0724abd14577f7a6c8172d62e3e1c0808feb114d4d379402e17f37e3c7801e

Open the dependency plan · Download the documentation model

Import a package

Enter a package name and an exact version from Hackage. The site contains imported versions only.