Skip to content

Commit 703b36f

Browse files
committed
Expand ${pkgroot} variable when reading haddock-html field from ghc-pkg.
This fixes #11217 No test, as it is difficult to test since you need to: 1. Ensure there is a package registration with ${pkgroot} 2. Check the existence of a certain link in the generated HTML.
1 parent 59c80b7 commit 703b36f

File tree

1 file changed

+1
-1
lines changed
  • Cabal/src/Distribution/Simple/Program

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ mungePackagePaths pkgroot pkginfo =
351351
, libraryDynDirs = mungePaths (libraryDynDirs pkginfo)
352352
, frameworkDirs = mungePaths (frameworkDirs pkginfo)
353353
, haddockInterfaces = mungePaths (haddockInterfaces pkginfo)
354-
, haddockHTMLs = mungeUrls (haddockHTMLs pkginfo)
354+
, haddockHTMLs = mungePaths (mungeUrls (haddockHTMLs pkginfo))
355355
}
356356
where
357357
mungePaths = map mungePath

0 commit comments

Comments
 (0)