From e2ea02230dab2810f1e703ba1ed9f5ff042ba52a Mon Sep 17 00:00:00 2001 From: Roman Cheplyaka Date: Thu, 27 Nov 2008 22:27:36 +0000 Subject: Allow referring to a specific section within a module in a module link Fixes #65 --- src/Haddock/Backends/Html.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Haddock') diff --git a/src/Haddock/Backends/Html.hs b/src/Haddock/Backends/Html.hs index b9922262..7302cf2e 100644 --- a/src/Haddock/Backends/Html.hs +++ b/src/Haddock/Backends/Html.hs @@ -1592,7 +1592,7 @@ parHtmlMarkup ppId = Markup { markupString = toHtml, markupAppend = (+++), markupIdentifier = tt . ppId . head, - markupModule = \m -> ppModule (mkModuleNoPackage m) "", + markupModule = \m -> let (mod,ref) = break (=='#') m in ppModule (mkModuleNoPackage mod) ref, markupEmphasis = emphasize . toHtml, markupMonospaced = tt . toHtml, markupUnorderedList = ulist . concatHtml . map (li <<), -- cgit v1.2.3