aboutsummaryrefslogtreecommitdiff
path: root/CabalHelper
diff options
context:
space:
mode:
authorDaniel Gröber <dxld@darkboxed.org>2015-08-06 04:38:52 +0200
committerDaniel Gröber <dxld@darkboxed.org>2015-08-06 04:38:52 +0200
commit7fe7afcc49994e5f9b6abd5455b27a1473eef8d4 (patch)
treed04888d214522f689468ce1460fd9a4e4bcb0ab0 /CabalHelper
parent5517351ed7e7509ba217be6157632c9959074204 (diff)
package-db stack is global not per component
Diffstat (limited to 'CabalHelper')
-rw-r--r--CabalHelper/Main.hs5
1 files changed, 1 insertions, 4 deletions
diff --git a/CabalHelper/Main.hs b/CabalHelper/Main.hs
index 35af775..077eaab 100644
--- a/CabalHelper/Main.hs
+++ b/CabalHelper/Main.hs
@@ -229,11 +229,8 @@ main = do
pkgDbStr UserPackageDB = "U"
pkgDbStr (SpecificPackageDB s) = "S" ++ s
- res <- map (\(c, opts) -> (c, map pkgDbStr $ ghcOptPackageDBs opts))
- <$> componentOptions' lvd False [] (\_ _ x -> return x) id
-
-- TODO: Setup.hs has access to the sandbox as well: ghc-mod#478
- return $ Just $ ChResponseCompList $ (res :: [(ChComponentName, [String])]) ++ [(ChSetupHsName, [])]
+ return $ Just $ ChResponseList $ map pkgDbStr $ withPackageDB lbi
"entrypoints":[] -> do
eps <- componentsMap lbi v distdir $ \c clbi bi ->