Skip to content

Commit 577c848

Browse files
committed
Fix incomplete-record-selection warning in cabal-install
1 parent 781ebea commit 577c848

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cabal-install/src/Distribution/Client/ProjectPlanning.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1246,8 +1246,8 @@ getPackageSourceHashes verbosity withRepoCtx solverPlan = do
12461246
]
12471247
| (repo, pkgids) <-
12481248
map (\grp@((repo, _) :| _) -> (repo, map snd (NE.toList grp)))
1249-
. NE.groupBy ((==) `on` (remoteRepoName . repoRemote . fst))
1250-
. sortBy (compare `on` (remoteRepoName . repoRemote . fst))
1249+
. NE.groupBy ((==) `on` (fmap remoteRepoName . maybeRepoRemote . fst))
1250+
. sortBy (compare `on` (fmap remoteRepoName . maybeRepoRemote . fst))
12511251
$ repoTarballPkgsWithMetadata
12521252
]
12531253

0 commit comments

Comments
 (0)