Commit 8614859d authored by Andres Löh's avatar Andres Löh
Browse files

Fix debugging output for infinite backjumps.

Previously, a setting of `--max-backjumps=-1` was reported in
the debug output as `0`. But `0` has a very different meaning,
and that is confusing.
parent b65935fc
......@@ -168,8 +168,8 @@ showDepResolverParams p =
++ "\navoid reinstalls: " ++ show (depResolverAvoidReinstalls p)
++ "\nshadow packages: " ++ show (depResolverShadowPkgs p)
++ "\nstrong flags: " ++ show (depResolverStrongFlags p)
++ "\nmax backjumps: " ++ show (fromMaybe 0 $
depResolverMaxBackjumps p)
++ "\nmax backjumps: " ++ maybe "infinite" show
(depResolverMaxBackjumps p)
where
showLabeledConstraint :: LabeledPackageConstraint -> String
showLabeledConstraint (LabeledPackageConstraint pc src) =
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment