text-locale-encoding-0.1.0.1: Encode and decode Text to/from ByteString using TextEncoding

PortabilityGHC-only
Stabilityexperimental
Maintainerkudahkukarek@gmail.com
Safe HaskellTrustworthy

Data.Text.Encoding.Locale

Description

This module provides functions to encode and decode Text to/from ByteString using TextEncoding

For performance, Text's native encoding functions are used if the conditions are right (LF NewlineMode and UTF encoding).

Synopsis

Documentation

decodeLocale :: ByteString -> IO TextSource

Decode ByteString to Text using current locale

encodeLocale :: Text -> IO ByteStringSource

Encode Text to ByteString using current locale