-- | First compile the package, then load the interface
compileAndLoadIface :: FilePath -> ModName -> IfaceM ModIface
compileAndLoadIface buildDir modName = do
    liftIO $ putStrLn $ "Loading module: " ++ show modName
    chdir buildDir
    initDynFlags
    loadIface modName

-- | Change the working directory and inform GHC
compileAndLoadIface :: FilePath -> ModName -> IfaceM ModIface
compileAndLoadIface buildDir modName = do
    liftIO $ putStrLn $ "Loading module: " ++ show modName
    chdir buildDir
    initDynFlags
    loadIface modName

-- | Change the working directory and inform GHC
compileAndLoadIface buildDir modName = do
    liftIO $ putStrLn $ "Loading module: " ++ show modName
    chdir buildDir
    initDynFlags
    loadIface modName

-- | Change the working directory and inform GHC