| ... | ... | @@ -121,20 +121,14 @@ A disadvantage or using encodings is that some byte-strings may not be legal enc |
|
|
|
encoding declaration, like in
|
|
|
|
[ XML](http://www.w3.org/TR/2004/REC-xml11-20040204/#sec-guessing).
|
|
|
|
The fact that the first three characters must be `{-#` will be
|
|
|
|
useful here. Haskell compilers must support at least the encodings
|
|
|
|
|
|
|
|
|
|
|
|
ASCII,LATIN1, and UTF8.
|
|
|
|
|
|
|
|
|
|
|
|
- A literal string may contain any literal character representable in the
|
|
|
|
source encoding. In addition, escapes are provided to permit the specification of
|
|
|
|
*any* Unicode character (which may or may not be otherwise
|
|
|
|
representable in the source encoding).
|
|
|
|
- An identifier may contain any Unicode alphanumeric or symbol
|
|
|
|
characters from a defined range. Thus, a source text may not be
|
|
|
|
representable in certain other encodings (especially in ASCII).
|
|
|
|
|
|
|
|
useful here. Haskell compilers must support at least the encodings ASCII,LATIN1, and UTF8.
|
|
|
|
- A literal string may contain any literal character representable in the
|
|
|
|
source encoding. In addition, escapes are provided to permit the specification of
|
|
|
|
*any* Unicode character (which may or may not be otherwise
|
|
|
|
representable in the source encoding).
|
|
|
|
- An identifier may contain any Unicode alphanumeric or symbol
|
|
|
|
characters from a defined range. Thus, a source text may not be
|
|
|
|
representable in certain other encodings (especially in ASCII).
|
|
|
|
- **I/O.**
|
|
|
|
All raw I/O is in terms of octets, i.e. `Word8`
|
|
|
|
- **Conversions.**
|
| ... | ... | |