Show the version when doing 'ghcup set'

This commit is contained in:
2020-04-15 17:06:48 +02:00
parent b2312629ce
commit 997dcadf89
2 changed files with 5 additions and 5 deletions

View File

@@ -699,8 +699,8 @@ Check the logs at ~/.ghcup/logs and the build directory #{tmpdir} for more clues
liftE $ setGHC v SetGHCOnly
)
>>= \case
VRight _ ->
runLogger $ $(logInfo) ("GHC successfully set")
VRight v ->
runLogger $ $(logInfo) [i|GHC #{prettyVer v} successfully set as default version|]
VLeft e ->
runLogger ($(logError) [i|#{e}|]) >> exitFailure