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

Commit b4f2326

Browse files
committed
Remove redundant check for stack installation
1 parent b775f13 commit b4f2326

File tree

1 file changed

+1
-2
lines changed
  • src/Haskell/Ide/Engine/Plugin

1 file changed

+1
-2
lines changed

src/Haskell/Ide/Engine/Plugin/Base.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,8 @@ hieGhcDisplayVersion = compilerName ++ "-" ++ VERSION_ghc
109109

110110
getProjectGhcVersion :: BIOS.Cradle -> IO String
111111
getProjectGhcVersion crdl = do
112-
isStackProject <- doesFileExist "stack.yaml"
113112
isStackInstalled <- isJust <$> findExecutable "stack"
114-
if isStackCradle crdl && isStackProject && isStackInstalled
113+
if isStackCradle crdl && isStackInstalled
115114
then do
116115
L.infoM "hie" "Using stack GHC version"
117116
catch (tryCommand "stack ghc -- --numeric-version") $ \e -> do

0 commit comments

Comments
 (0)