mirror of
https://github.com/edwinb/Idris2-boot.git
synced 2025-01-05 03:17:21 +03:00
Clear delayed holes on failure
This commit is contained in:
parent
14f717aa33
commit
9baf180127
@ -50,9 +50,11 @@ elabTerm defining mode env tm ty
|
|||||||
solveConstraints solvemode Normal
|
solveConstraints solvemode Normal
|
||||||
logTerm 5 "Looking for delayed in " chktm
|
logTerm 5 "Looking for delayed in " chktm
|
||||||
ust <- get UST
|
ust <- get UST
|
||||||
retryDelayed (delayedElab ust)
|
catch (retryDelayed (delayedElab ust))
|
||||||
ust <- get UST
|
(\err =>
|
||||||
put UST (record { delayedElab = [] } ust)
|
do ust <- get UST
|
||||||
|
put UST (record { delayedElab = [] } ust)
|
||||||
|
throw err)
|
||||||
-- As long as we're not in a case block, finish off constraint solving
|
-- As long as we're not in a case block, finish off constraint solving
|
||||||
when (not incase) $
|
when (not incase) $
|
||||||
-- resolve any default hints
|
-- resolve any default hints
|
||||||
|
Loading…
Reference in New Issue
Block a user