Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Cabal
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Glasgow Haskell Compiler
Packages
Cabal
Commits
7ffcd512
Commit
7ffcd512
authored
3 years ago
by
Brandon Chinn
Committed by
mergify-bot
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Always update index when traversing haddock targets
parent
4595a798
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Cabal/src/Distribution/Simple/Haddock.hs
+17
-21
17 additions, 21 deletions
Cabal/src/Distribution/Simple/Haddock.hs
with
17 additions
and
21 deletions
Cabal/src/Distribution/Simple/Haddock.hs
+
17
−
21
View file @
7ffcd512
...
...
@@ -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"
$
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment