Fix hlint
This commit is contained in:
parent
dd978ff2fd
commit
950155cbe3
@ -165,7 +165,7 @@ getDownloadsF pfreq@(PlatformRequest arch plat _) = do
|
|||||||
-> [String]
|
-> [String]
|
||||||
-> m GHCupInfo
|
-> m GHCupInfo
|
||||||
fromStackSetupInfo (Stack.siGHCs -> ghcDli) keys = do
|
fromStackSetupInfo (Stack.siGHCs -> ghcDli) keys = do
|
||||||
let ghcVersionsPerKey = (`M.lookup` ghcDli) <$> (T.pack <$> keys)
|
let ghcVersionsPerKey = (`M.lookup` ghcDli) . T.pack <$> keys
|
||||||
ghcVersions = fromMaybe mempty . listToMaybe . catMaybes $ ghcVersionsPerKey
|
ghcVersions = fromMaybe mempty . listToMaybe . catMaybes $ ghcVersionsPerKey
|
||||||
(ghcupInfo' :: M.Map GHCTargetVersion DownloadInfo) <-
|
(ghcupInfo' :: M.Map GHCTargetVersion DownloadInfo) <-
|
||||||
M.mapKeys mkTVer <$> M.traverseMaybeWithKey (\_ a -> pure $ fromStackDownloadInfo a) ghcVersions
|
M.mapKeys mkTVer <$> M.traverseMaybeWithKey (\_ a -> pure $ fromStackDownloadInfo a) ghcVersions
|
||||||
|
@ -889,7 +889,7 @@ ghcToolFiles ver = do
|
|||||||
groupToolFiles = groupBy (\(a, _) (b, _) -> a == b) . fmap (splitOnPVP "-")
|
groupToolFiles = groupBy (\(a, _) (b, _) -> a == b) . fmap (splitOnPVP "-")
|
||||||
|
|
||||||
getUniqueTools :: [[(FilePath, String)]] -> [String]
|
getUniqueTools :: [[(FilePath, String)]] -> [String]
|
||||||
getUniqueTools = filter (isNotAnyInfix blackListedTools) . nub . fmap fst . filter ((== "") . snd) . concat
|
getUniqueTools = filter (isNotAnyInfix blackListedTools) . nub . fmap fst . concatMap (filter ((== "") . snd))
|
||||||
|
|
||||||
blackListedTools :: [String]
|
blackListedTools :: [String]
|
||||||
blackListedTools = ["haddock-ghc"]
|
blackListedTools = ["haddock-ghc"]
|
||||||
|
Loading…
Reference in New Issue
Block a user