Safe Haskell | None |
---|---|
Language | Haskell98 |
- 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 where Source
Textual data which can be encoded to and decoded from UTF8.
encodeUtf8 :: textual -> binary Source
decodeUtf8 :: binary -> textual Source
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] |