diff --git a/Language/Haskell/GhcMod/CabalHelper.hs b/Language/Haskell/GhcMod/CabalHelper.hs index bf180c8..c9076bb 100644 --- a/Language/Haskell/GhcMod/CabalHelper.hs +++ b/Language/Haskell/GhcMod/CabalHelper.hs @@ -133,7 +133,8 @@ prepareCabalHelper = do let projdir = cradleRootDir crdl distdir = projdir "dist" readProc <- gmReadProcess - withCabal $ liftIO $ prepare readProc projdir distdir + when (cradleProjectType crdl == CabalProject) $ + withCabal $ liftIO $ prepare readProc projdir distdir withCabal :: (IOish m, GmEnv m, GmLog m) => m a -> m a withCabal action = do