mirror of
https://github.com/ilyakooo0/Idris-dev.git
synced 2024-09-22 14:38:20 +03:00
It is now an error to focus on nonexisting holes in Elab scripts
This makes subtle bugs more obvious.
This commit is contained in:
parent
603b06cf01
commit
82c2735637
@ -2051,8 +2051,10 @@ runElabAction ist fc env tm ns = do tm' <- eval tm
|
||||
returnUnit
|
||||
| n == tacN "prim__Focus", [what] <- args
|
||||
= do n' <- reifyTTName what
|
||||
focus n'
|
||||
returnUnit
|
||||
hs <- get_holes
|
||||
if elem n' hs
|
||||
then focus n' >> returnUnit
|
||||
else lift . tfail . Msg $ "The name " ++ show n' ++ " does not denote a hole"
|
||||
| n == tacN "prim__Unfocus", [what] <- args
|
||||
= do n' <- reifyTTName what
|
||||
movelast n'
|
||||
|
Loading…
Reference in New Issue
Block a user