| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Pipes.Text.Internal
- 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.
Constructors
| Codec | |
Fields
| |
data TextException Source
Constructors
| DecodeException Codec Word8 | |
| EncodeException Codec Char | |
| LengthExceeded Int | |
| TextException SomeException |
Instances
Constructors
| Some Text ByteString (ByteString -> Decoding) | |
| Other Text ByteString |
decodeSomeUtf8 :: ByteString -> (Text, ByteString) Source