Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shayne Fletcher
Glasgow Haskell Compiler
Commits
483cdff0
Commit
483cdff0
authored
May 20, 2009
by
Simon Marlow
Browse files
document -XUnicodeSyntax
parent
6d13a905
Changes
2
Hide whitespace changes
Inline
Side-by-side
docs/users_guide/flags.xml
View file @
483cdff0
...
...
@@ -789,7 +789,7 @@
</row>
<row>
<entry><option>
-XUnicodeSyntax
</option></entry>
<entry>
Enable unicode syntax.
</entry>
<entry>
Enable
<link
linkend=
"unicode-syntax"
>
unicode syntax
</link>
.
</entry>
<entry>
dynamic
</entry>
<entry><option>
-XNoUnicodeSyntax
</option></entry>
</row>
...
...
docs/users_guide/glasgow_exts.xml
View file @
483cdff0
...
...
@@ -335,6 +335,75 @@ Indeed, the bindings can even be recursive.
<sect1
id=
"syntax-extns"
>
<title>
Syntactic extensions
</title>
<sect2
id=
"unicode-syntax"
>
<title>
Unicode syntax
</title>
<para>
The language
extension
<option>
-XUnicodeSyntax
</option><indexterm><primary><option>
-XUnicodeSyntax
</option></primary></indexterm>
enables Unicode characters to be used to stand for certain ASCII
character sequences. The following alternatives are provided:
</para>
<informaltable>
<tgroup
cols=
"2"
align=
"left"
colsep=
"1"
rowsep=
"1"
>
<thead>
<row>
<entry>
ASCII
</entry>
<entry>
Unicode alternative
</entry>
<entry>
Code point
</entry>
<entry>
Name
</entry>
</row>
</thead>
<tbody>
<row>
<entry><literal>
::
</literal></entry>
<entry>
::
</entry>
<!-- no special char, apparently -->
<entry>
0x2237
</entry>
<entry>
PROPORTION
</entry>
</row>
</tbody>
<tbody>
<row>
<entry><literal>
=
>
</literal></entry>
<entry>
⇒
</entry>
<entry>
0x21D2
</entry>
<entry>
RIGHTWARDS DOUBLE ARROW
</entry>
</row>
</tbody>
<tbody>
<row>
<entry><literal>
forall
</literal></entry>
<entry>
∀
</entry>
<entry>
0x2200
</entry>
<entry>
FOR ALL
</entry>
</row>
</tbody>
<tbody>
<row>
<entry><literal>
-
>
</literal></entry>
<entry>
→
</entry>
<entry>
0x2192
</entry>
<entry>
RIGHTWARDS ARROW
</entry>
</row>
</tbody>
<tbody>
<row>
<entry><literal>
<
-
</literal></entry>
<entry>
←
</entry>
<entry>
0x2190
</entry>
<entry>
LEFTWARDS ARROW
</entry>
</row>
</tbody>
<tbody>
<row>
<entry>
..
</entry>
<entry>
…
</entry>
<entry>
0x22EF
</entry>
<entry>
MIDLINE HORIZONTAL ELLIPSIS
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</sect2>
<sect2
id=
"magic-hash"
>
<title>
The magic hash
</title>
<para>
The language extension
<option>
-XMagicHash
</option>
allows "
#
" as a
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment