aboutsummaryrefslogtreecommitdiff
path: root/src/Haddock/Backends/Xhtml.hs
diff options
context:
space:
mode:
authorHenning Thielemann <git@henning-thielemann.de>2012-04-01 22:03:25 +0200
committerHenning Thielemann <git@henning-thielemann.de>2012-04-01 22:03:25 +0200
commit979ada5bc63cba38bf570f943a3666298879bdc9 (patch)
tree67f86313b43e70306e26f9a80b5c32de2c3ad5b4 /src/Haddock/Backends/Xhtml.hs
parente9898d45575458d49eb2119923c8c1adbc581065 (diff)
'abbreviate' qualification style - basic support
Currently we ignore the package a module is imported from. This means that a module import would shadow another one with the same module name from a different package.
Diffstat (limited to 'src/Haddock/Backends/Xhtml.hs')
-rw-r--r--src/Haddock/Backends/Xhtml.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Haddock/Backends/Xhtml.hs b/src/Haddock/Backends/Xhtml.hs
index 686bd36b..fc94e7d6 100644
--- a/src/Haddock/Backends/Xhtml.hs
+++ b/src/Haddock/Backends/Xhtml.hs
@@ -468,8 +468,9 @@ ppHtmlModule odir doctitle themes
maybe_contents_url maybe_index_url unicode qual debug iface = do
let
mdl = ifaceMod iface
+ abbrevs = ifaceModuleAbbrevs iface
mdl_str = moduleString mdl
- real_qual = makeModuleQual qual mdl
+ real_qual = makeModuleQual qual abbrevs mdl
html =
headHtml mdl_str (Just $ "mini_" ++ moduleHtmlFile mdl) themes +++
bodyHtml doctitle (Just iface)