Skip to content

Commit f12d434

Browse files
committed
wrapper: remove unused argument
1 parent af033a7 commit f12d434

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

exe/Wrapper.hs

+6-7
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ import Ide.Logger (Doc, Logger (Logger),
5151
Recorder (logger_),
5252
WithPriority (WithPriority),
5353
cmapWithPrio,
54-
makeDefaultStderrRecorder,
55-
toCologActionWithPrio)
54+
makeDefaultStderrRecorder)
5655
import Ide.Plugin.Config (Config)
5756
import Ide.Types (IdePlugins (IdePlugins))
5857
import Language.LSP.Protocol.Message (Method (Method_Initialize),
@@ -84,7 +83,7 @@ main = do
8483
putStrLn $ showProgramVersionOfInterest programsOfInterest
8584
putStrLn "Tool versions in your project"
8685
cradle <- findProjectCradle' recorder False
87-
ghcVersion <- runExceptT $ getRuntimeGhcVersion' recorder cradle
86+
ghcVersion <- runExceptT $ getRuntimeGhcVersion' cradle
8887
putStrLn $ showProgramVersion "ghc" $ mkVersion =<< eitherToMaybe ghcVersion
8988

9089
VersionMode PrintVersion ->
@@ -124,7 +123,7 @@ launchHaskellLanguageServer recorder parsedArgs = do
124123
case parsedArgs of
125124
Ghcide GhcideArguments{..} ->
126125
when argsProjectGhcVersion $ do
127-
runExceptT (getRuntimeGhcVersion' recorder cradle) >>= \case
126+
runExceptT (getRuntimeGhcVersion' cradle) >>= \case
128127
Right ghcVersion -> putStrLn ghcVersion >> exitSuccess
129128
Left err -> T.putStrLn (prettyError err NoShorten) >> exitFailure
130129
_ -> pure ()
@@ -147,7 +146,7 @@ launchHaskellLanguageServer recorder parsedArgs = do
147146
hPutStrLn stderr "Consulting the cradle to get project GHC version..."
148147

149148
runExceptT $ do
150-
ghcVersion <- getRuntimeGhcVersion' recorder cradle
149+
ghcVersion <- getRuntimeGhcVersion' cradle
151150
liftIO $ hPutStrLn stderr $ "Project GHC version: " ++ ghcVersion
152151

153152
let
@@ -192,8 +191,8 @@ cradleResult cradleName CradleNone = throwE $ NoneCradleGhcVersion cradleName
192191

193192
-- | Version of 'getRuntimeGhcVersion' that dies if we can't get it, and also
194193
-- 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
194+
getRuntimeGhcVersion' :: Cradle Void -> ExceptT WrapperSetupError IO String
195+
getRuntimeGhcVersion' cradle = do
197196
let cradleName = actionName (cradleOptsProg cradle)
198197

199198
-- See if the tool is installed

0 commit comments

Comments
 (0)