Commit fc641ab5 authored by Ian Lynagh's avatar Ian Lynagh

Use relative paths for haddockHTMLs in the inplace package.conf

This means that the docs get built with the correct relative paths.
When installing, the absolute path will still be used.
parent 7f4b8d9b
......@@ -310,7 +310,10 @@ generate config_args distdir directory
let ipid = InstalledPackageId (display (packageId pd) ++ "-inplace")
let installedPkgInfo = inplaceInstalledPackageInfo cwd distdir
pd lib lbi clbi
final_ipi = installedPkgInfo{ Installed.installedPackageId = ipid }
final_ipi = installedPkgInfo {
Installed.installedPackageId = ipid,
Installed.haddockHTMLs = ["../" ++ display (packageId pd)]
}
content = Installed.showInstalledPackageInfo final_ipi ++ "\n"
writeFileAtomic (distdir </> "inplace-pkg-config") content
_ -> error "Inconsistent lib components; can't happen?"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment