diff --git a/Language/Haskell/GhcMod/Cradle.hs b/Language/Haskell/GhcMod/Cradle.hs index 322b82e..022bff2 100644 --- a/Language/Haskell/GhcMod/Cradle.hs +++ b/Language/Haskell/GhcMod/Cradle.hs @@ -83,7 +83,7 @@ stackCradle wdir = do -- If dist/setup-config already exists the user probably wants to use cabal -- rather than stack, or maybe that's just me ;) - mCabalSetupCfg <- mightExist $ setupConfigPath "dist" + mCabalSetupCfg <- liftIO $ mightExist $ setupConfigPath "dist" when (isJust mCabalSetupCfg) $ mzero distDir <- MaybeT $ getStackDistDir cabalDir