Let Cabal determine the package-db stack

This commit is contained in:
Daniel Gröber
2015-08-07 06:47:34 +02:00
parent f85327a1b6
commit 8439f12cb0
21 changed files with 247 additions and 171 deletions

View File

@@ -344,7 +344,7 @@ legacyInteractive :: IOish m => GhcModT m ()
legacyInteractive = do
opt <- options
symdbreq <- liftIO $ newSymDbReq opt
world <- liftIO . getCurrentWorld =<< cradle
world <- getCurrentWorld
legacyInteractiveLoop symdbreq world
bug :: String -> IO ()
@@ -371,7 +371,7 @@ legacyInteractiveLoop symdbreq world = do
-- after blocking, we need to see if the world has changed.
changed <- liftIO . didWorldChange world =<< cradle
changed <- didWorldChange world
when changed $ do
dropSession