|
|
|
|
Synopsis |
|
|
|
Documentation |
|
module Data.Encoding.Exception |
|
module Data.Encoding.ByteSource |
|
module Data.Encoding.ByteSink |
|
class Encoding enc where | Source |
|
The base class for all encodings. At least decodeChar, encodeChar and encodeable must be implemented.
| | Methods | | Read a single character of a ByteSource
| | | Encode a single character and write it to a ByteSink
| | | Read characters from a ByteSource until it is empty
| | | Encode a String and write it to a ByteSink
| | | Tests whether a given character is representable in the Encoding.
If this yields True, encodeChar must not fail.
If it yields False, encodeChar _must_ throw an exception.
|
| | Instances | |
|
|
|
Wraps all possible encoding types into one data type.
Used when a function needs to return an encoding.
| Instances | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Takes the name of an encoding and creates a dynamic encoding from it.
|
|
|
Like encodingFromString but returns Nothing instead of throwing an error
|
|
Produced by Haddock version 2.6.0 |