Copyright | 2014 Michael Thompson, 2011 Michael Snoyman, 2010-2011 John Millikin |
---|---|
License | MIT |
Safe Haskell | None |
Language | Haskell2010 |
Parts of this code were taken from enumerator and conduits, and adapted for pipes.
- data Decoding
- = Some Text ByteString (ByteString -> Decoding)
- | Other Text ByteString
- streamDecodeUtf8 :: ByteString -> Decoding
- decodeSomeUtf8 :: ByteString -> (Text, ByteString)
- data Codec = Codec {
- codecName :: Text
- codecEncode :: Text -> (ByteString, Maybe (TextException, Text))
- codecDecode :: ByteString -> Decoding
- data TextException
- utf8 :: Codec
- utf16_le :: Codec
- utf16_be :: Codec
- utf32_le :: Codec
- utf32_be :: Codec
Documentation
A stream oriented decoding result.
decodeSomeUtf8 :: ByteString -> (Text, ByteString) Source
A specific character encoding.
Since 0.3.0
Codec | |
|