Safe Haskell | None |
---|
- class (Textual textual, IsSequence binary) => Utf8 textual binary | textual -> binary, binary -> textual where
- encodeUtf8 :: textual -> binary
- decodeUtf8 :: binary -> textual
Documentation
class (Textual textual, IsSequence binary) => Utf8 textual binary | textual -> binary, binary -> textual whereSource
Textual data which can be encoded to and decoded from UTF8.
encodeUtf8 :: textual -> binarySource
decodeUtf8 :: binary -> textualSource
Note that this function is required to be pure. In the case of a decoding error, Unicode replacement characters must be used.
Utf8 Text ByteString | |
Utf8 Text ByteString | |
(~ * c Char, ~ * w Word8) => Utf8 [c] [w] |