@@ -54,7 +54,7 @@ import Distribution.Simple.Setup
54
54
import Distribution.Simple.Utils
55
55
( ordNubBy )
56
56
import Distribution.Verbosity
57
- import Distribution.Solver.Modular.Message (SolverTrace (.. ))
57
+ import Distribution.Solver.Modular.Message (SolverTrace (.. ), renderSolverTrace )
58
58
59
59
-- | Ties the two worlds together: classic cabal-install vs. the modular
60
60
-- solver. Performs the necessary translations before and after.
@@ -181,7 +181,7 @@ solve' sc cinfo idx pkgConfigDB pprefs gcs pns =
181
181
-- original goal order.
182
182
goalOrder' = preferGoalsFromConflictSet cs <> fromMaybe mempty (goalOrder sc)
183
183
184
- in unlines (" Could not resolve dependencies:" : map show (messages (toProgress (runSolver True sc'))))
184
+ in unlines (" Could not resolve dependencies:" : map renderSolverTrace (messages (toProgress (runSolver True sc'))))
185
185
186
186
printFullLog = solverVerbosity sc >= verbose
187
187
@@ -228,7 +228,7 @@ tryToMinimizeConflictSet :: forall a . (SolverConfig -> RetryLog SolverTrace Sol
228
228
-> ConflictMap
229
229
-> RetryLog SolverTrace SolverFailure a
230
230
tryToMinimizeConflictSet runSolver sc cs cm =
231
- foldl (\ r v -> retryMap mkErrorMsg $ retryNoSolution (retryMap show r) $ tryToRemoveOneVar v)
231
+ foldl (\ r v -> retryMap mkErrorMsg $ retryNoSolution (retryMap renderSolverTrace r) $ tryToRemoveOneVar v)
232
232
(fromProgress $ Fail $ ExhaustiveSearch cs cm)
233
233
(CS. toList cs)
234
234
where
@@ -261,7 +261,7 @@ tryToMinimizeConflictSet runSolver sc cs cm =
261
261
| otherwise =
262
262
continueWith (" Trying to remove variable " ++ varStr ++ " from the "
263
263
++ " conflict set." ) $
264
- retry (retryMap show $ runSolver sc') $ \ case
264
+ retry (retryMap renderSolverTrace $ runSolver sc') $ \ case
265
265
err@ (ExhaustiveSearch cs' _)
266
266
| CS. toSet cs' `isSubsetOf` CS. toSet smallestKnownCS ->
267
267
let msg = if not $ CS. member v cs'
0 commit comments