mirror of
https://github.com/edwinb/Idris2-boot.git
synced 2025-01-02 17:52:09 +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
|
||||
logTerm 5 "Looking for delayed in " chktm
|
||||
ust <- get UST
|
||||
retryDelayed (delayedElab ust)
|
||||
ust <- get UST
|
||||
put UST (record { delayedElab = [] } ust)
|
||||
catch (retryDelayed (delayedElab ust))
|
||||
(\err =>
|
||||
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
|
||||
when (not incase) $
|
||||
-- resolve any default hints
|
||||
|
Loading…
Reference in New Issue
Block a user