Skip to content

Commit 6b62b97

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

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: exe/Wrapper.hs

+5-5
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ main = do
8484
putStrLn $ showProgramVersionOfInterest programsOfInterest
8585
putStrLn "Tool versions in your project"
8686
cradle <- findProjectCradle' recorder False
87-
ghcVersion <- runExceptT $ getRuntimeGhcVersion' recorder cradle
87+
ghcVersion <- runExceptT $ getRuntimeGhcVersion' cradle
8888
putStrLn $ showProgramVersion "ghc" $ mkVersion =<< eitherToMaybe ghcVersion
8989

9090
VersionMode PrintVersion ->
@@ -124,7 +124,7 @@ launchHaskellLanguageServer recorder parsedArgs = do
124124
case parsedArgs of
125125
Ghcide GhcideArguments{..} ->
126126
when argsProjectGhcVersion $ do
127-
runExceptT (getRuntimeGhcVersion' recorder cradle) >>= \case
127+
runExceptT (getRuntimeGhcVersion' cradle) >>= \case
128128
Right ghcVersion -> putStrLn ghcVersion >> exitSuccess
129129
Left err -> T.putStrLn (prettyError err NoShorten) >> exitFailure
130130
_ -> pure ()
@@ -147,7 +147,7 @@ launchHaskellLanguageServer recorder parsedArgs = do
147147
hPutStrLn stderr "Consulting the cradle to get project GHC version..."
148148

149149
runExceptT $ do
150-
ghcVersion <- getRuntimeGhcVersion' recorder cradle
150+
ghcVersion <- getRuntimeGhcVersion' cradle
151151
liftIO $ hPutStrLn stderr $ "Project GHC version: " ++ ghcVersion
152152

153153
let
@@ -192,8 +192,8 @@ cradleResult cradleName CradleNone = throwE $ NoneCradleGhcVersion cradleName
192192

193193
-- | Version of 'getRuntimeGhcVersion' that dies if we can't get it, and also
194194
-- 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
197197
let cradleName = actionName (cradleOptsProg cradle)
198198

199199
-- See if the tool is installed

0 commit comments

Comments
 (0)