Commit 83c1e5e7 authored by Andrey Mokhov's avatar Andrey Mokhov
Browse files

Depend on package configuration when compiling package sources with GHC.

See #205.
parent b9af374e
......@@ -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"
......
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