From 94c4bb8f85a86c5acd567a0059f20b67bada41ec Mon Sep 17 00:00:00 2001 From: Luke Lau Date: Sat, 25 Jan 2020 12:04:36 +0000 Subject: [PATCH] Reword some logging statements Got a bit confused when I saw plain ghc with a cabal cradle! --- hie-plugin-api/Haskell/Ide/Engine/Cradle.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hie-plugin-api/Haskell/Ide/Engine/Cradle.hs b/hie-plugin-api/Haskell/Ide/Engine/Cradle.hs index df0d3a28f..7f9e4b4f2 100644 --- a/hie-plugin-api/Haskell/Ide/Engine/Cradle.hs +++ b/hie-plugin-api/Haskell/Ide/Engine/Cradle.hs @@ -94,7 +94,7 @@ execProjectGhc crdl args = do -- isCabalInstalled <- isJust <$> findExecutable "cabal" ghcOutput <- if isStackCradle crdl && isStackInstalled then do - logm "Use Stack GHC" + logm $ "Executing Stack GHC with args: " <> unwords args catch (Just <$> tryCommand stackCmd) $ \(_ :: IOException) -> do errorm $ "Command `" ++ stackCmd ++"` failed." execWithGhc @@ -109,7 +109,7 @@ execProjectGhc crdl args = do -- errorm $ "Command `" ++ cmd ++ "` failed." -- return Nothing else do - logm "Use Plain GHC" + logm $ "Executing GHC on path with args: " <> unwords args execWithGhc debugm $ "GHC Output: \"" ++ show ghcOutput ++ "\"" return ghcOutput