From 99c8501d47904ac8b08b33820a8ea8387609162e Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Fri, 29 Apr 2022 16:47:11 +0200 Subject: [PATCH] Silence hlint --- lib/GHCup.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/GHCup.hs b/lib/GHCup.hs index abf860f..39f079a 100644 --- a/lib/GHCup.hs +++ b/lib/GHCup.hs @@ -2603,7 +2603,7 @@ upgradeGHCup mtarget force' = do GHCupInfo { _ghcupDownloads = dls } <- lift getGHCupInfo lift $ logInfo "Upgrading GHCup..." - let latestVer = fromJust $ fst <$> getLatest dls GHCup + let latestVer = fst (fromJust (getLatest dls GHCup)) (Just ghcupPVPVer) <- pure $ pvpToVersion ghcUpVer "" when (not force' && (latestVer <= ghcupPVPVer)) $ throwE NoUpdate dli <- liftE $ getDownloadInfo GHCup latestVer