Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
e30ffcb2
Commit
e30ffcb2
authored
Oct 09, 2016
by
kristenk
Committed by
GitHub
Oct 09, 2016
Browse files
Merge pull request #3961 from fmthoma/fmthoma/fix-counting-backjumps
Fix conflict counting bug
parents
69424603
6c00067c
Changes
1
Show whitespace changes
Inline
Side-by-side
cabal-install/Distribution/Solver/Modular/Explore.hs
View file @
e30ffcb2
...
@@ -60,7 +60,10 @@ backjump (EnableBackjumping enableBj) var initial xs =
...
@@ -60,7 +60,10 @@ backjump (EnableBackjumping enableBj) var initial xs =
|
otherwise
=
f
(
csAcc
`
CS
.
union
`
cs
)
cm'
|
otherwise
=
f
(
csAcc
`
CS
.
union
`
cs
)
cm'
logBackjump
::
ConflictSet
QPN
->
ConflictMap
->
ConflictSetLog
a
logBackjump
::
ConflictSet
QPN
->
ConflictMap
->
ConflictSetLog
a
logBackjump
cs
cm
=
failWith
(
Failure
cs
Backjump
)
(
cs
,
cm
)
logBackjump
cs
cm
=
failWith
(
Failure
cs
Backjump
)
(
cs
,
updateCM
initial
cm
)
-- 'intial' instead of 'cs' here ---^
-- since we do not want to double-count the
-- additionally accumulated conflicts.
type
ConflictSetLog
=
RetryLog
Message
(
ConflictSet
QPN
,
ConflictMap
)
type
ConflictSetLog
=
RetryLog
Message
(
ConflictSet
QPN
,
ConflictMap
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment