@@ -84,7 +84,7 @@ main = do
84
84
putStrLn $ showProgramVersionOfInterest programsOfInterest
85
85
putStrLn " Tool versions in your project"
86
86
cradle <- findProjectCradle' recorder False
87
- ghcVersion <- runExceptT $ getRuntimeGhcVersion' recorder cradle
87
+ ghcVersion <- runExceptT $ getRuntimeGhcVersion' cradle
88
88
putStrLn $ showProgramVersion " ghc" $ mkVersion =<< eitherToMaybe ghcVersion
89
89
90
90
VersionMode PrintVersion ->
@@ -124,7 +124,7 @@ launchHaskellLanguageServer recorder parsedArgs = do
124
124
case parsedArgs of
125
125
Ghcide GhcideArguments {.. } ->
126
126
when argsProjectGhcVersion $ do
127
- runExceptT (getRuntimeGhcVersion' recorder cradle) >>= \ case
127
+ runExceptT (getRuntimeGhcVersion' cradle) >>= \ case
128
128
Right ghcVersion -> putStrLn ghcVersion >> exitSuccess
129
129
Left err -> T. putStrLn (prettyError err NoShorten ) >> exitFailure
130
130
_ -> pure ()
@@ -147,7 +147,7 @@ launchHaskellLanguageServer recorder parsedArgs = do
147
147
hPutStrLn stderr " Consulting the cradle to get project GHC version..."
148
148
149
149
runExceptT $ do
150
- ghcVersion <- getRuntimeGhcVersion' recorder cradle
150
+ ghcVersion <- getRuntimeGhcVersion' cradle
151
151
liftIO $ hPutStrLn stderr $ " Project GHC version: " ++ ghcVersion
152
152
153
153
let
@@ -192,8 +192,8 @@ cradleResult cradleName CradleNone = throwE $ NoneCradleGhcVersion cradleName
192
192
193
193
-- | Version of 'getRuntimeGhcVersion' that dies if we can't get it, and also
194
194
-- checks to see if the tool is missing if it is one of
195
- getRuntimeGhcVersion' :: Recorder ( WithPriority ( Doc () )) -> Cradle Void -> ExceptT WrapperSetupError IO String
196
- getRuntimeGhcVersion' recorder cradle = do
195
+ getRuntimeGhcVersion' :: Cradle Void -> ExceptT WrapperSetupError IO String
196
+ getRuntimeGhcVersion' cradle = do
197
197
let cradleName = actionName (cradleOptsProg cradle)
198
198
199
199
-- See if the tool is installed
0 commit comments