nub result in getInstalledCabals

This commit is contained in:
Julian Ospald 2020-07-28 21:40:26 +02:00
parent d30d2ac8a5
commit af811f3dbc
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28

View File

@ -245,7 +245,7 @@ getInstalledCabals = do
Just (Left _) -> pure $ Left f
Nothing -> pure $ Left f
cs <- cabalSet -- for legacy cabal
pure $ maybe vs (\x -> Right x:vs) cs
pure $ maybe vs (\x -> nub $ Right x:vs) cs
-- | Whether the given cabal version is installed.