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
25807bee
Commit
25807bee
authored
10 years ago
by
Duncan Coutts
Browse files
Options
Downloads
Plain Diff
Merge pull request #2466 from edsko/bugfix/package-key
Make sure to pass the package key to ghc
parents
121c9de9
3e78870d
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/Distribution/Simple/Haddock.hs
+5
-6
5 additions, 6 deletions
Cabal/Distribution/Simple/Haddock.hs
with
5 additions
and
6 deletions
Cabal/Distribution/Simple/Haddock.hs
+
5
−
6
View file @
25807bee
...
...
@@ -162,7 +162,6 @@ haddock pkg_descr _ _ haddockFlags
++
" --benchmarks flags."
haddock
pkg_descr
lbi
suffixes
flags
=
do
setupMessage
verbosity
"Running Haddock for"
(
packageId
pkg_descr
)
(
confHaddock
,
version
,
_
)
<-
requireProgramVersion
verbosity
haddockProgram
...
...
@@ -308,9 +307,10 @@ fromLibrary verbosity tmp lbi lib clbi htmlTemplate haddockVersion = do
-- haddock stomps on our precious .hi
-- and .o files. Workaround by telling
-- haddock to write them elsewhere.
ghcOptObjDir
=
toFlag
tmp
,
ghcOptHiDir
=
toFlag
tmp
,
ghcOptStubDir
=
toFlag
tmp
ghcOptObjDir
=
toFlag
tmp
,
ghcOptHiDir
=
toFlag
tmp
,
ghcOptStubDir
=
toFlag
tmp
,
ghcOptPackageKey
=
toFlag
$
pkgKey
lbi
}
`
mappend
`
getGhcCppOpts
haddockVersion
bi
sharedOpts
=
vanillaOpts
{
ghcOptDynLinkMode
=
toFlag
GhcDynamicOnly
,
...
...
@@ -498,8 +498,7 @@ renderPureArgs version comp args = concat
,
"--package-version="
++
display
(
pkgVersion
pkg
)
])
.
fromFlag
.
argPackageName
$
args
else
(
\
pname
->
[
"--optghc=-package-name"
,
"--optghc="
++
pname
])
.
display
.
fromFlag
.
argPackageName
$
args
else
[]
,
(
\
(
All
b
,
xs
)
->
bool
(
map
((
"--hide="
++
)
.
display
)
xs
)
[]
b
)
.
argHideModules
$
args
...
...
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