Update parser-typechecker/src/Unison/PatternMatchCoverage/Solve.hs

This commit is contained in:
Arya Irani 2024-06-25 15:33:22 -04:00 committed by GitHub
parent 364b7790ca
commit 627acb7f3a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -519,8 +519,8 @@ addConstraint con0 nc = do
let updateLiteral pos neg lit
| Just lit1 <- pos,
lit1 == lit =
(pure (), Ignore) -- we already have this positive constraint
-- the constraint contradicts negative info
-- we already have this positive constraint
(pure (), Ignore)
| Set.member lit neg = (contradiction, Ignore)
| otherwise = (pure (), Update (Just lit, neg))
in modifyLiteralC var pmlit updateLiteral nc