Skip to content

Commit 2150ca5

Browse files
authored
Merge pull request #11218 from haskell/wip/fix-pkgroot-haddock-html
Expand ${pkgroot} variable when reading haddock-html field from ghc-pkg
2 parents f8e6106 + 423ce6c commit 2150ca5

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

Cabal/src/Distribution/Simple/Program/HcPkg.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ mungePackagePaths pkgroot pkginfo =
339339
, libraryDynDirs = mungePaths (libraryDynDirs pkginfo)
340340
, frameworkDirs = mungePaths (frameworkDirs pkginfo)
341341
, haddockInterfaces = mungePaths (haddockInterfaces pkginfo)
342-
, haddockHTMLs = mungeUrls (haddockHTMLs pkginfo)
342+
, haddockHTMLs = mungePaths (mungeUrls (haddockHTMLs pkginfo))
343343
}
344344
where
345345
mungePaths = map mungePath

changelog.d/pr-11218.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
synopsis: Fix links to installed documentation when running `cabal haddock`
2+
packages: Cabal
3+
prs: #11218
4+
5+
Links to installed documentation (i.e. for base) from generated haddocks should
6+
now work.
7+
8+
The `pkgroot` variable wasn't being expanded when reading the `haddock-html` field
9+
from a package description.

0 commit comments

Comments
 (0)