aboutsummaryrefslogtreecommitdiff
path: root/haddock-api/src
diff options
context:
space:
mode:
authorŁukasz Hanuszczak <lukasz.hanuszczak@gmail.com>2015-06-12 10:57:30 +0200
committerŁukasz Hanuszczak <lukasz.hanuszczak@gmail.com>2015-06-30 22:37:49 +0200
commit1064953c6590c05303c6cbd2230b9e13d3ba1376 (patch)
treebf0a1d79839de67ae77812c88732667c49f56a59 /haddock-api/src
parentc6786894f71809ecfa377a44beab0771a3bc7985 (diff)
Fix external anchors to contain HTML file extension.
Diffstat (limited to 'haddock-api/src')
-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