Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
83c1e5e7
Commit
83c1e5e7
authored
Feb 06, 2016
by
Andrey Mokhov
Browse files
Depend on package configuration when compiling package sources with GHC.
See
#205
.
parent
b9af374e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Settings/Builders/Ghc.hs
View file @
83c1e5e7
...
...
@@ -103,9 +103,13 @@ wayGhcArgs = do
-- TODO: Improve handling of "-hide-all-packages"
packageGhcArgs
::
Args
packageGhcArgs
=
do
stage
<-
getStage
pkg
<-
getPackage
compId
<-
getPkgData
ComponentId
pkgDepIds
<-
getPkgDataList
DepIds
lift
.
when
(
isLibrary
pkg
)
$
do
conf
<-
pkgConfFile
stage
pkg
need
[
conf
]
mconcat
[
arg
"-hide-all-packages"
,
arg
"-no-user-package-db"
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment