Fix missing autogen files when dist/setup-config already exists (Issue #621)

This commit is contained in:
Daniel Gröber
2015-09-23 12:01:37 +02:00
parent 6f0eb46db9
commit df455a3618
3 changed files with 75 additions and 50 deletions

View File

@@ -489,7 +489,7 @@ needsFallback = any $ \ms ->
cabalResolvedComponents :: (IOish m) =>
GhcModT m (Map ChComponentName (GmComponent 'GMCResolved (Set ModulePath)))
cabalResolvedComponents = do
cabalResolvedComponents = withAutogen $ do
crdl@(Cradle{..}) <- cradle
comps <- mapM (resolveEntrypoint crdl) =<< getComponents
cached cradleRootDir (resolvedComponentsCache cradleDistDir) comps