From b33335263d27d63b7feffeca3059d89bf2964620 Mon Sep 17 00:00:00 2001 From: simonmar Date: Wed, 29 May 2002 13:38:51 +0000 Subject: [haddock @ 2002-05-29 13:38:51 by simonmar] Document recent changes to markup syntax --- doc/haddock.sgml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'doc/haddock.sgml') diff --git a/doc/haddock.sgml b/doc/haddock.sgml index c90e0f01..bfdb78af 100644 --- a/doc/haddock.sgml +++ b/doc/haddock.sgml @@ -889,7 +889,8 @@ module A where Displayed blocks of code are indicated by surrounding a paragraph with @...@ or by preceding each - line of a paragraph with >. For + line of a paragraph with > (we often + call these “bird tracks”). For example: @@ -903,6 +904,12 @@ module A where + There is an important difference between the two forms of + code block: in the bird-track form, the text to the right of the + ‘>’ is interpreted literally, + whereas the @...@ form interprets markup as + normal inside the code block. +
Hyperlinked Identifiers @@ -935,6 +942,16 @@ module A where (without checking to see whether either M or M.T exist). + To make life easier for documentation writers, a quoted + identifier is only interpreted as such if the quotes surround + a lexically valid Haskell identifier. This means, for + example, that it normally isn't necessary to escape the single + quote when used as an apostrophe: + + +-- | I don't have to escape my apostrophes; great, isn't it? + + For compatibility with other systems, the following alternative form of markup is accepted We chose not to use this as the primary markup for -- cgit v1.2.3