diff options
author | ross <unknown> | 2005-01-13 14:44:24 +0000 |
---|---|---|
committer | ross <unknown> | 2005-01-13 14:44:24 +0000 |
commit | e8f54f255a7295fc0da368390706b1ae5d90268c (patch) | |
tree | 215741b4fb682405c15b75d8241004ad3bd8f787 | |
parent | 106e3cf0daeae469f969e669317c863a56b533b4 (diff) |
[haddock @ 2005-01-13 14:44:24 by ross]
Describe numeric character references.
-rw-r--r-- | doc/haddock.xml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/haddock.xml b/doc/haddock.xml index 0b97c92c..df1dc4a7 100644 --- a/doc/haddock.xml +++ b/doc/haddock.xml @@ -1230,6 +1230,28 @@ module A where </section> <section> + <title>Character references</title> + + <para>Although Haskell source files may contain any character + from the Unicode character set, the encoding of these characters + as bytes varies between systems, so that only source files + restricted to the ASCII character set are portable. Other + characters may be specified in character and string literals + using Haskell character escapes. To represent such characters + in documentation comments, Haddock supports SGML-style numeric + character references of the forms + <literal>&#</literal><replaceable>D</replaceable><literal>;</literal> + and + <literal>&#x</literal><replaceable>H</replaceable><literal>;</literal> + where <replaceable>D</replaceable> and <replaceable>H</replaceable> + are decimal and hexadecimal numbers denoting a code position + in Unicode (or ISO 10646). For example, the references + <literal>&#x3BB;</literal>, <literal>&#x3bb;</literal> + and <literal>&#955;</literal> all represent the lower-case + letter lambda.</para> + </section> + + <section> <title>Code Blocks</title> <para>Displayed blocks of code are indicated by surrounding a |