Fix boolean check in upgradeGHCup :)

This commit is contained in:
Julian Ospald 2020-04-15 15:37:29 +02:00
parent ea4f9ceab1
commit 404038edcb
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28

View File

@ -692,7 +692,7 @@ upgradeGHCup :: ( MonadMask m
upgradeGHCup dls mtarget force = do
lift $ $(logInfo) [i|Upgrading GHCup...|]
let latestVer = fromJust $ getLatest dls GHCup
when (not force && (latestVer < pvpToVersion ghcUpVer)) $ throwE NoUpdate
when (not force && (latestVer <= pvpToVersion ghcUpVer)) $ throwE NoUpdate
pfreq <- liftE platformRequest
dli <- lE $ getDownloadInfo GHCup latestVer pfreq dls
tmp <- lift withGHCupTmpDir