Decode an InputStream of ByteStrings in UTF-8 format into an
InputStream of Text values. If decoding fails, will throw an exception.
See Data.Text.Encoding.decodeUtf8.
Moduleio-streams-1.5.2.2Haskell2010
System.IO.Streams.Text
Stream primitives for decoding and encoding Text values in UTF-8 format.
- 3 values
- Packageio-streams-1.5.2.2
- Exports3
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceText.hs
Decoders and Encoders
3 declarationsDecode an InputStream of ByteStrings in UTF-8 format into an
InputStream of Text values. If decoding fails, invokes the given
OnDecodeError function to decide what to do. See
Data.Text.Encoding.decodeUtf8With.
Convert an OutputStream taking ByteStrings to an OutputStream that
takes Text, encoding the data as UTF-8. See
Data.Text.Encoding.encodeUtf8.