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

Commit

Permalink
Reword some logging statements
Browse files Browse the repository at this point in the history
Got a bit confused when I saw plain ghc with a cabal cradle!
  • Loading branch information
lukel97 committed Jan 25, 2020
1 parent bef47a0 commit 94c4bb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hie-plugin-api/Haskell/Ide/Engine/Cradle.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 94c4bb8

Please sign in to comment.