1 module Distribution
.Solver
.Modular
.Log
7 import Distribution
.Solver
.Compat
.Prelude
9 import Distribution
.Solver
.Types
.Progress
11 import Distribution
.Solver
.Modular
.Dependency
12 import Distribution
.Solver
.Modular
.Message
13 import Distribution
.Solver
.Modular
.RetryLog
15 -- | Information about a dependency solver failure.
17 ExhaustiveSearch ConflictSet ConflictMap
18 | BackjumpLimitReached
20 -- | Postprocesses a log file. This function discards all log messages and
21 -- avoids calling 'showMessages' if the log isn't needed (specified by
22 -- 'keepLog'), for efficiency.
23 displayLogMessages
:: Bool
24 -> RetryLog Message SolverFailure a
25 -> RetryLog
String SolverFailure a
26 displayLogMessages keepLog lg
= fromProgress
$
28 then showMessages progress
29 else foldProgress
(const id) Fail Done progress
31 progress
= toProgress lg