File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
cabal-install/src/Distribution/Client/ProjectConfig Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -266,20 +266,20 @@ parseProject rootPath cacheDir httpTransport verbosity configToParse = do
266
266
267
267
data Dupes = Dupes
268
268
{ dupesImport :: ProjectImport
269
- , dupesSeenImportsBy :: [ProjectImport ]
269
+ , dupesImports :: [ProjectImport ]
270
270
}
271
271
deriving (Eq )
272
272
273
273
instance Ord Dupes where
274
- compare = compare `on` length . dupesSeenImportsBy
274
+ compare = compare `on` length . dupesImports
275
275
276
276
type DupesMap = Map FilePath [Dupes ]
277
277
278
278
dupesMsg :: (FilePath , [Dupes ]) -> Doc
279
279
dupesMsg (duplicate, ds@ (take 1 . sortOn (importBy . dupesImport) -> dupes)) =
280
280
vcat $
281
281
((text " Warning:" <+> int (length ds) <+> text " imports of" <+> text duplicate) <> semi)
282
- : ((\ Dupes {.. } -> duplicateImportMsg Disp. empty dupesImport dupesSeenImportsBy ) <$> dupes)
282
+ : ((\ Dupes {.. } -> duplicateImportMsg Disp. empty dupesImport dupesImports ) <$> dupes)
283
283
284
284
parseProjectSkeleton
285
285
:: FilePath
You can’t perform that action at this time.
0 commit comments