diff options
author | Roman Cheplyaka <roma@ro-che.info> | 2008-11-27 22:27:36 +0000 |
---|---|---|
committer | Roman Cheplyaka <roma@ro-che.info> | 2008-11-27 22:27:36 +0000 |
commit | e2ea02230dab2810f1e703ba1ed9f5ff042ba52a (patch) | |
tree | 15ef310d14949f285d091d8c5ed2378b60aa4a65 | |
parent | 1e344dca0d63ce76a24aa36d35e611bdaa08fa8d (diff) |
Allow referring to a specific section within a module in a module link
Fixes #65
-rw-r--r-- | src/Haddock/Backends/Html.hs | 2 |
1 files changed, 1 insertions, 1 deletions
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 <<), |