diff options
author | Daniel Gröber <dxld@darkboxed.org> | 2015-08-06 04:38:52 +0200 |
---|---|---|
committer | Daniel Gröber <dxld@darkboxed.org> | 2015-08-06 04:38:52 +0200 |
commit | 7fe7afcc49994e5f9b6abd5455b27a1473eef8d4 (patch) | |
tree | d04888d214522f689468ce1460fd9a4e4bcb0ab0 /CabalHelper | |
parent | 5517351ed7e7509ba217be6157632c9959074204 (diff) |
package-db stack is global not per component
Diffstat (limited to 'CabalHelper')
-rw-r--r-- | CabalHelper/Main.hs | 5 |
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 -> |