File tree Expand file tree Collapse file tree 2 files changed +1
-17
lines changed
cabal-install-solver/src/Distribution/Solver Expand file tree Collapse file tree 2 files changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ modularResolver sc (Platform arch os) cinfo iidx sidx pkgConfigDB pprefs pcs pns
66
66
-- Indices have to be converted into solver-specific uniform index.
67
67
idx = convPIs os arch cinfo gcs (shadowPkgs sc) (strongFlags sc) (solveExecutables sc) iidx sidx
68
68
-- Constraints have to be converted into a finite map indexed by PN.
69
- gcs = M. fromListWith (++) (map pair $ traceShowId pcs)
69
+ gcs = M. fromListWith (++) (map pair pcs)
70
70
where
71
71
pair lpc = (pcName $ unlabelPackageConstraint lpc, [lpc])
72
72
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ import Distribution.Compat.Prelude
13
13
import Prelude ()
14
14
import Distribution.Solver.Types.ConstraintSource
15
15
import Distribution.Solver.Types.PackageConstraint
16
- import Distribution.Types.PackageName
17
16
import Distribution.Types.VersionRange
18
17
import qualified Data.Map.Strict as Map
19
18
import Data.List (groupBy )
@@ -22,21 +21,6 @@ import Data.List (groupBy)
22
21
data LabeledPackageConstraint
23
22
= LabeledPackageConstraint PackageConstraint ConstraintSource
24
23
25
- instance {-# INCOHERENT #-} Show [LabeledPackageConstraint ] where
26
- show [] = " "
27
- show xs = intercalate " \n " $
28
- filter (/= " " ) (showLabeledPackageConstraint <$> xs)
29
-
30
- instance Show LabeledPackageConstraint where
31
- show = showLabeledPackageConstraint
32
-
33
- showLabeledPackageConstraint :: LabeledPackageConstraint -> String
34
- showLabeledPackageConstraint (LabeledPackageConstraint pc@ (PackageConstraint scope _) src@ ConstraintSourceProjectConfig {}) =
35
- if unPackageName (scopeToPackageName scope) == " hashable"
36
- then " SOURCE: " ++ showConstraintSource src ++ " , CONSTRAINT: " ++ show pc
37
- else " "
38
- showLabeledPackageConstraint _ = " "
39
-
40
24
unlabelPackageConstraint :: LabeledPackageConstraint -> PackageConstraint
41
25
unlabelPackageConstraint (LabeledPackageConstraint pc _) = pc
42
26
You can’t perform that action at this time.
0 commit comments