mirror of
https://github.com/IHaskell/IHaskell.git
synced 2025-04-16 19:36:06 +00:00
Fix warnings
This commit is contained in:
parent
6c25824cc7
commit
5577155a5e
@ -14,7 +14,7 @@ import Control.Concurrent.Chan
|
||||
import Control.Arrow (second)
|
||||
import Data.Aeson hiding (Success)
|
||||
import System.Process (readProcess, readProcessWithExitCode)
|
||||
import System.Exit (exitSuccess, ExitCode(ExitSuccess))
|
||||
import System.Exit (exitSuccess, ExitCode)
|
||||
import Control.Exception (try)
|
||||
import System.Environment (getArgs)
|
||||
import System.Environment (setEnv)
|
||||
@ -136,7 +136,7 @@ runKernel kOpts profileSrc = do
|
||||
let stack =
|
||||
case runResult :: Either SomeException (ExitCode, String, String) of
|
||||
Left _ -> False
|
||||
Right (exitCode, stackStdout, stackStderr) -> "The Haskell Tool Stack" `isInfixOf` (stackStdout ++ stackStderr)
|
||||
Right (_, 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