@@ -538,9 +538,9 @@ elab ist info pattern opts fn tm
538538 mkN n = case namespace info of
539539 Just xs@(_:_) -> sNS n xs
540540 _ -> n
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
542542 elab' ina (PTactics ts)
543− | not pattern = do mapM_ (runTac False ist) ts
543+ | not pattern = do mapM_ (runTac False ist fn) ts
544544 | otherwise = elab' ina Placeholder
545545 elab' ina (PElabError e) = fail (pshow ist e)
546546 elab' ina (PRewrite fc r sc newg)
@@ -950,8 +950,8 @@ collectDeferred top t = return t
950950-- Running tactics directly
951951-- if a tactic adds unification problems, return an error
952952
953−runTac :: Bool -> IState -> PTactic -> ElabD ()
954−runTac autoSolve ist tac
953+runTac :: Bool -> IState -> Name -> PTactic -> ElabD ()
954+runTac autoSolve ist fn tac
955955 = do env <- get_env
956956 g <- goal
957957 if autoSolve
@@ -1065,8 +1065,8 @@ runTac autoSolve ist tac
10651065 runT Compute = compute
10661066 runT Trivial = do trivial' ist; when autoSolve solveAll
10671067 runT TCInstance = runT (Exact (PResolveTC emptyFC))
1068− runT (ProofSearch top n hints)
1069− = do proofSearch' ist top n hints; when autoSolve solveAll
1068+ runT (ProofSearch top hints)
1069+ = do proofSearch' ist top fn hints; when autoSolve solveAll
10701070 runT (Focus n) = focus n
10711071 runT Solve = solve
10721072 runT (Try l r) = do try' (runT l) (runT r) True
@@ -1145,7 +1145,7 @@ runTac autoSolve ist tac
11451145 ctxt <- get_context
11461146 env <- get_env
11471147 let value' = hnf ctxt env value
1148− runTac autoSolve ist (Exact $ PQuote (reflect value'))
1148+ runTac autoSolve ist fn (Exact $ PQuote (reflect value'))
11491149 runT (Fill v) = do attack -- let x = fill x in ...
11501150 tyn <- getNameFrom (sMN 0 "letty")
11511151 claim tyn RType
@@ -1160,7 +1160,7 @@ runTac autoSolve ist tac
11601160 env <- get_env
11611161 let value' = normalise ctxt env value
11621162 rawValue <- reifyRaw value'
1163− runTac autoSolve ist (Exact $ PQuote rawValue)
1163+ runTac autoSolve ist fn (Exact $ PQuote rawValue)
11641164 runT (GoalType n tac) = do g <- goal
11651165 case unApply g of
11661166 (P _ n' _, _) ->
@@ -1173,7 +1173,7 @@ runTac autoSolve ist tac
11731173 runT x = fail $ "Not implemented " ++ show x
11741174
11751175 runReflected t = do t' <- reify ist t
1176− runTac autoSolve ist t'
1176+ runTac autoSolve ist fn t'
11771177
11781178-- | Prefix a name with the "Language.Reflection" namespace
11791179reflm :: String -> Name