[commit: haddock] ghc-7.6: Add documentation for URL labels (0f6c13f)

Simon Hengel <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.ghc
Message-ID <[email protected]>
Repository : ssh://darcs.haskell.org//srv/darcs/haddock

On branch  : ghc-7.6

http://hackage.haskell.org/trac/ghc/changeset/0f6c13f66ea335bf371ab49125371ac665de6cf8

>---------------------------------------------------------------

commit 0f6c13f66ea335bf371ab49125371ac665de6cf8
Author: Simon Hengel <[email protected]>
Date:   Sat Sep 8 12:17:17 2012 +0200

    Add documentation for URL labels

>---------------------------------------------------------------

 doc/haddock.xml |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/doc/haddock.xml b/doc/haddock.xml
index 7ddfdcc..a38b70c 100644
--- a/doc/haddock.xml
+++ b/doc/haddock.xml
@@ -1830,6 +1830,13 @@ module A where
 	<literal>&lt;...&gt;</literal>.  If the output format supports
 	it, the URL will be turned into a hyperlink when
 	rendered.</para>
+
+        The URL can be followed by an optional label:
+<programlisting>
+&lt;http://example.com label&gt;
+</programlisting>
+        The label is then used as a descriptive text for the hyperlink, if the
+        output format supports it.
       </section>
 
       <section>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.