Fix GHCup showing up twice in list
This commit is contained in:
parent
b38a569124
commit
21d30cd8ce
@ -1187,8 +1187,8 @@ listVersions lt' criteria = do
|
||||
latestVer = fst <$> headOf (getTagged Latest) av
|
||||
recommendedVer = fst <$> headOf (getTagged Latest) av
|
||||
isOld = maybe True (> currentVer) latestVer && maybe True (> currentVer) recommendedVer
|
||||
in if | currentVer == listVer -> Nothing
|
||||
| otherwise -> ListResult { lVer = currentVer
|
||||
in if | Map.member currentVer av -> Nothing
|
||||
| otherwise -> Just $ ListResult { lVer = currentVer
|
||||
, lTag = maybe (if isOld then [Old] else []) _viTags listVer
|
||||
, lCross = Nothing
|
||||
, lTool = GHCup
|
||||
|
Loading…
Reference in New Issue
Block a user