aboutsummaryrefslogtreecommitdiff
path: root/haddock-api/src/Haddock/Backends
diff options
context:
space:
mode:
Diffstat (limited to 'haddock-api/src/Haddock/Backends')
-rw-r--r--haddock-api/src/Haddock/Backends/Hyperlinker/Renderer.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/haddock-api/src/Haddock/Backends/Hyperlinker/Renderer.hs b/haddock-api/src/Haddock/Backends/Hyperlinker/Renderer.hs
index b7cc5aeb..99a0f337 100644
--- a/haddock-api/src/Haddock/Backends/Hyperlinker/Renderer.hs
+++ b/haddock-api/src/Haddock/Backends/Hyperlinker/Renderer.hs
@@ -96,7 +96,7 @@ internalHyperlink name content =
externalHyperlink :: GHC.Name -> Html -> Html
externalHyperlink name content =
- Html.anchor content ! [ Html.href $ maybe "" id mmod ++ "#" ++ ident ]
+ Html.anchor content ! [ Html.href $ maybe "" id mmod ++ ".html#" ++ ident ]
where
mmod = GHC.moduleNameString . GHC.moduleName <$> GHC.nameModule_maybe name
ident = externalAnchorIdent name