text-0.7.1.0: An efficient packed Unicode text typeSource codeContentsIndex
Data.Text.Lazy.Encoding
Portabilityportable
Stabilityexperimental
Maintainerbos@serpentine.com, rtharper@aftereternity.co.uk, duncan@haskell.org
Contents
Decoding ByteStrings to Text
Encoding Text to ByteStrings
Description

Functions for converting lazy Text values to and from lazy ByteString, using several standard encodings.

To make use of a much larger variety of encodings, use the text-icu package.

Synopsis
decodeUtf8 :: ByteString -> Text
decodeUtf8With :: OnDecodeError -> ByteString -> Text
encodeUtf8 :: Text -> ByteString
Decoding ByteStrings to Text
decodeUtf8 :: ByteString -> TextSource
Decode a ByteString containing UTF-8 encoded text.
decodeUtf8With :: OnDecodeError -> ByteString -> TextSource
Decode a ByteString containing UTF-8 encoded text.
Encoding Text to ByteStrings
encodeUtf8 :: Text -> ByteStringSource
Encode text using UTF-8 encoding.
Produced by Haddock version 2.6.0