Skip to content

Commit

Permalink
Fix -Wincomplete-uni-patterns warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
philderbeast committed Mar 17, 2024
1 parent 96da64f commit 29728b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/StackageToHackage/Stackage.hs
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ mergeResolvers (Resolver r c p f) (Resolver r' c' p' f') =
mergeDeps :: [Dep] -> [Dep] -> [Dep]
mergeDeps lhs rhs =
let nonGits = filter (not . isGitDep) lhs <> filter (not . isGitDep) rhs
gitsLhs = (\(SourceDep dep) -> dep) <$> filter isGitDep lhs
gitsRhs = (\(SourceDep dep) -> dep) <$> filter isGitDep rhs
gitsLhs = [dep | SourceDep dep <- lhs]
gitsRhs = [dep | SourceDep dep <- rhs]
gitMerged = foldl' (\m key -> update key m) gitsRhs gitsLhs
in (SourceDep <$> gitMerged) <> nonGits

Expand Down

0 comments on commit 29728b2

Please sign in to comment.