diff --git a/Cabal/src/Distribution/Simple/Program/HcPkg.hs b/Cabal/src/Distribution/Simple/Program/HcPkg.hs index a494bc63f02..7ad7eba4ebc 100644 --- a/Cabal/src/Distribution/Simple/Program/HcPkg.hs +++ b/Cabal/src/Distribution/Simple/Program/HcPkg.hs @@ -351,7 +351,7 @@ mungePackagePaths pkgroot pkginfo = , libraryDynDirs = mungePaths (libraryDynDirs pkginfo) , frameworkDirs = mungePaths (frameworkDirs pkginfo) , haddockInterfaces = mungePaths (haddockInterfaces pkginfo) - , haddockHTMLs = mungeUrls (haddockHTMLs pkginfo) + , haddockHTMLs = mungePaths (mungeUrls (haddockHTMLs pkginfo)) } where mungePaths = map mungePath diff --git a/changelog.d/pr-11218.md b/changelog.d/pr-11218.md new file mode 100644 index 00000000000..5b69bbb59ee --- /dev/null +++ b/changelog.d/pr-11218.md @@ -0,0 +1,6 @@ +synopsis: Fix links to installed documentation when running `cabal haddock` +packages: Cabal +prs: #11218 + +Links to installed documentation (i.e. for base) from generated haddock should +now work.