Skip to content
Snippets Groups Projects
Commit 7ffcd512 authored by Brandon Chinn's avatar Brandon Chinn Committed by mergify-bot
Browse files

Always update index when traversing haddock targets

parent 4595a798
No related branches found
No related tags found
No related merge requests found
......@@ -279,27 +279,23 @@ haddock pkg_descr lbi suffixes flags' = do
let libArgs' = commonArgs `mappend` libArgs
runHaddock verbosity tmpFileOpts comp platform haddockProg libArgs'
case libName lib of
LMainLibName ->
pure index
LSubLibName _ -> do
pwd <- getCurrentDirectory
let
ipi = inplaceInstalledPackageInfo
pwd (flag haddockDistPref) pkg_descr
(mkAbiHash "inplace") lib lbi' clbi
debug verbosity $ "Registering inplace:\n"
++ (InstalledPackageInfo.showInstalledPackageInfo ipi)
registerPackage verbosity (compiler lbi') (withPrograms lbi')
(withPackageDB lbi') ipi
HcPkg.defaultRegisterOptions {
HcPkg.registerMultiInstance = True
}
return $ PackageIndex.insert ipi index
pwd <- getCurrentDirectory
let
ipi = inplaceInstalledPackageInfo
pwd (flag haddockDistPref) pkg_descr
(mkAbiHash "inplace") lib lbi' clbi
debug verbosity $ "Registering inplace:\n"
++ (InstalledPackageInfo.showInstalledPackageInfo ipi)
registerPackage verbosity (compiler lbi') (withPrograms lbi')
(withPackageDB lbi') ipi
HcPkg.defaultRegisterOptions {
HcPkg.registerMultiInstance = True
}
return $ PackageIndex.insert ipi index
CFLib flib -> (when (flag haddockForeignLibs) $ do
withTempDirectoryEx verbosity tmpFileOpts (buildDir lbi') "tmp" $
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment