@@ -538,9 +538,9 @@ elab ist info pattern opts fn tm
538 mkN n = case namespace info of
538 mkN n = case namespace info of
539 Just xs@(_:_) -> sNS n xs
539 Just xs@(_:_) -> sNS n xs
541− elab' ina (PProof ts) = do compute; mapM_ (runTac True ist) ts
541+ elab' ina (PProof ts) = do compute; mapM_ (runTac True ist fn) ts
542 elab' ina (PTactics ts)
542 elab' ina (PTactics ts)
543− | not pattern = do mapM_ (runTac False ist) ts
543+ | not pattern = do mapM_ (runTac False ist fn) ts
544 | otherwise = elab' ina Placeholder
544 | otherwise = elab' ina Placeholder
545 elab' ina (PElabError e) = fail (pshow ist e)
545 elab' ina (PElabError e) = fail (pshow ist e)
546 elab' ina (PRewrite fc r sc newg)
546 elab' ina (PRewrite fc r sc newg)
@@ -950,8 +950,8 @@ collectDeferred top t = return t
950-- Running tactics directly
950-- Running tactics directly
951-- if a tactic adds unification problems, return an error
951-- if a tactic adds unification problems, return an error
953−runTac :: Bool -> IState -> PTactic -> ElabD ()
953+runTac :: Bool -> IState -> Name -> PTactic -> ElabD ()
954−runTac autoSolve ist tac
954+runTac autoSolve ist fn tac
955 = do env <- get_env
955 = do env <- get_env
956 g <- goal
956 g <- goal
957 if autoSolve
957 if autoSolve
@@ -1065,8 +1065,8 @@ runTac autoSolve ist tac
1065 runT Compute = compute
1065 runT Compute = compute
1066 runT Trivial = do trivial' ist; when autoSolve solveAll
1066 runT Trivial = do trivial' ist; when autoSolve solveAll
1067 runT TCInstance = runT (Exact (PResolveTC emptyFC))
1067 runT TCInstance = runT (Exact (PResolveTC emptyFC))
1068− runT (ProofSearch top n hints)
1068+ runT (ProofSearch top hints)
1069− = do proofSearch' ist top n hints; when autoSolve solveAll
1069+ = do proofSearch' ist top fn hints; when autoSolve solveAll
1070 runT (Focus n) = focus n
1070 runT (Focus n) = focus n
1071 runT Solve = solve
1071 runT Solve = solve
1072 runT (Try l r) = do try' (runT l) (runT r) True
1072 runT (Try l r) = do try' (runT l) (runT r) True
@@ -1145,7 +1145,7 @@ runTac autoSolve ist tac
1145 ctxt <- get_context
1145 ctxt <- get_context
1146 env <- get_env
1146 env <- get_env
1147 let value' = hnf ctxt env value
1147 let value' = hnf ctxt env value
1148− runTac autoSolve ist (Exact $ PQuote (reflect value'))
1148+ runTac autoSolve ist fn (Exact $ PQuote (reflect value'))
1149 runT (Fill v) = do attack -- let x = fill x in ...
1149 runT (Fill v) = do attack -- let x = fill x in ...
1150 tyn <- getNameFrom (sMN 0 "letty")
1150 tyn <- getNameFrom (sMN 0 "letty")
1151 claim tyn RType
1151 claim tyn RType
@@ -1160,7 +1160,7 @@ runTac autoSolve ist tac
1160 env <- get_env
1160 env <- get_env
1161 let value' = normalise ctxt env value
1161 let value' = normalise ctxt env value
1162 rawValue <- reifyRaw value'
1162 rawValue <- reifyRaw value'
1163− runTac autoSolve ist (Exact $ PQuote rawValue)
1163+ runTac autoSolve ist fn (Exact $ PQuote rawValue)
1164 runT (GoalType n tac) = do g <- goal
1164 runT (GoalType n tac) = do g <- goal
1165 case unApply g of
1165 case unApply g of
1166 (P _ n' _, _) ->
1166 (P _ n' _, _) ->
@@ -1173,7 +1173,7 @@ runTac autoSolve ist tac
1173 runT x = fail $ "Not implemented " ++ show x
1173 runT x = fail $ "Not implemented " ++ show x
1175 runReflected t = do t' <- reify ist t
1175 runReflected t = do t' <- reify ist t
1176− runTac autoSolve ist t'
1176+ runTac autoSolve ist fn t'
1178-- | Prefix a name with the "Language.Reflection" namespace
1178-- | Prefix a name with the "Language.Reflection" namespace
1179reflm :: String -> Name
1179reflm :: String -> Name