From d6edc43ef6c96e1c2c0c0564cfe502f17d0a53ed Mon Sep 17 00:00:00 2001 From: simonmar Date: Thu, 25 Jul 2002 14:37:29 +0000 Subject: [haddock @ 2002-07-25 14:37:28 by simonmar] Patch to allow simple hyperlinking to an arbitrary location in another module's documentation, from Volker Stolz. Now in a doc comment: #foo# creates And you can use the form "M\#foo" to hyperlink to the label 'foo' in module 'M'. Note that the backslash is necessary for now. --- src/HaddockRename.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/HaddockRename.hs') diff --git a/src/HaddockRename.hs b/src/HaddockRename.hs index 2717e605..77983e02 100644 --- a/src/HaddockRename.hs +++ b/src/HaddockRename.hs @@ -187,7 +187,8 @@ markupRename = Markup { markupUnorderedList = liftM DocUnorderedList . sequence, markupOrderedList = liftM DocOrderedList . sequence, markupCodeBlock = liftM DocCodeBlock, - markupURL = return . DocURL + markupURL = return . DocURL, + markupAName = return . DocAName } renameDoc :: Doc -> RnM Doc -- cgit v1.2.3