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>



_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to