diff --git a/Language/Haskell/GhcMod/Monad.hs b/Language/Haskell/GhcMod/Monad.hs index b9b8fe4..5fe33b8 100644 --- a/Language/Haskell/GhcMod/Monad.hs +++ b/Language/Haskell/GhcMod/Monad.hs @@ -200,11 +200,11 @@ initializeFlagsWithCradle opt c | cabal = withCabal | otherwise = withSandbox where - mCradleFile = cradleCabalFile c - cabal = isJust mCradleFile + mCabalFile = cradleCabalFile c + cabal = isJust mCabalFile ghcopts = ghcUserOptions opt withCabal = do - pkgDesc <- parseCabalFile c $ fromJust mCradleFile + pkgDesc <- parseCabalFile c $ fromJust mCabalFile compOpts <- getCompilerOptions ghcopts c pkgDesc initSession CabalPkg opt compOpts withSandbox = initSession SingleFile opt compOpts