mirror of
https://github.com/IHaskell/IHaskell.git
synced 2025-04-16 19:36:06 +00:00
Fix stack detection
This commit is contained in:
parent
c466b4fa2a
commit
6c25824cc7
@ -136,7 +136,7 @@ runKernel kOpts profileSrc = do
|
||||
let stack =
|
||||
case runResult :: Either SomeException (ExitCode, String, String) of
|
||||
Left _ -> False
|
||||
Right (exitCode, stackStdout, _) -> exitCode == ExitSuccess && "The Haskell Tool Stack" `isInfixOf` stackStdout
|
||||
Right (exitCode, stackStdout, stackStderr) -> "The Haskell Tool Stack" `isInfixOf` (stackStdout ++ stackStderr)
|
||||
|
||||
-- If we're in a stack directory, use `stack` to set the environment
|
||||
-- We can't do this with base <= 4.6 because setEnv doesn't exist.
|
||||
|
Loading…
x
Reference in New Issue
Block a user