Safe Haskell | None |
---|---|
Language | Haskell2010 |
- 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
- data Decoding
- = Some Text ByteString (ByteString -> Decoding)
- | Other Text ByteString
- streamDecodeUtf8 :: ByteString -> Decoding
- decodeSomeUtf8 :: ByteString -> (Text, ByteString)
Documentation
A specific character encoding.
Codec | |
|
data TextException Source
decodeSomeUtf8 :: ByteString -> (Text, ByteString) Source