| ... | ... | @@ -42,6 +42,18 @@ If Unicode were allowed, how would implementations know which encoding was used? |
|
|
|
- Jhc is the only implementation that allows unrestricted use of the Unicode character set in Haskell source, treating input as UTF-8.
|
|
|
|
- Hugs treats input as being in the encoding specified by the current locale, but permits Unicode only in comments and character and string literals.
|
|
|
|
- Others treat source code as Latin-1.
|
|
|
|
- Jhc supports several uses of unicode characters instead of the haskell
|
|
|
|
keywords.
|
|
|
|
|
|
|
|
- \[chr 0x2192\] '→' is equivalent to '→'
|
|
|
|
- \[chr 0x2190\] '←' is equivalent to '←
|
|
|
|
- \[chr 0x2237\] '∷' is equivalent to '::'
|
|
|
|
- \[chr 0x2025\] '‥' is equivalent to '..'
|
|
|
|
- \[chr 0x21d2\] '⇒' is equivalent to '⇒'
|
|
|
|
- \[chr 0x2200\] '∀' is equivalent to 'forall'
|
|
|
|
- \[chr 0x2203\] '∃' is equivalent to 'exists' — future extension will use
|
|
|
|
- in addition there is experimental support for defining new operators and
|
|
|
|
names using various unicode characters.
|
|
|
|
|
|
|
|
|
|
|
|
Some things we could do:
|
| ... | ... | |