File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ module Main where
99
1010import Control.Monad.Extra
1111import Data.Default
12- import Data.Either.Extra (eitherToMaybe )
1312import Data.Foldable
1413import Data.List
1514import Data.List.Extra (trimEnd )
@@ -76,8 +75,11 @@ main = do
7675 putStrLn $ showProgramVersionOfInterest programsOfInterest
7776 putStrLn " Tool versions in your project"
7877 cradle <- findProjectCradle' recorder False
79- ghcVersion <- runExceptT $ getRuntimeGhcVersion' cradle
80- putStrLn $ showProgramVersion " ghc" $ mkVersion =<< eitherToMaybe ghcVersion
78+ runExceptT (getRuntimeGhcVersion' cradle) >>= \ case
79+ Left err ->
80+ T. hPutStrLn stderr (prettyError err NoShorten )
81+ Right ghcVersion ->
82+ putStrLn $ showProgramVersion " ghc" $ mkVersion ghcVersion
8183
8284 VersionMode PrintVersion ->
8385 putStrLn hlsVer
You can’t perform that action at this time.
0 commit comments