Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Commit 94c4bb8

Browse files
committed
Reword some logging statements
Got a bit confused when I saw plain ghc with a cabal cradle!
1 parent bef47a0 commit 94c4bb8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hie-plugin-api/Haskell/Ide/Engine/Cradle.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ execProjectGhc crdl args = do
9494
-- isCabalInstalled <- isJust <$> findExecutable "cabal"
9595
ghcOutput <- if isStackCradle crdl && isStackInstalled
9696
then do
97-
logm "Use Stack GHC"
97+
logm $ "Executing Stack GHC with args: " <> unwords args
9898
catch (Just <$> tryCommand stackCmd) $ \(_ :: IOException) -> do
9999
errorm $ "Command `" ++ stackCmd ++"` failed."
100100
execWithGhc
@@ -109,7 +109,7 @@ execProjectGhc crdl args = do
109109
-- errorm $ "Command `" ++ cmd ++ "` failed."
110110
-- return Nothing
111111
else do
112-
logm "Use Plain GHC"
112+
logm $ "Executing GHC on path with args: " <> unwords args
113113
execWithGhc
114114
debugm $ "GHC Output: \"" ++ show ghcOutput ++ "\""
115115
return ghcOutput

0 commit comments

Comments
 (0)