@@ -104,62 +104,62 @@ record Datatype where
105data Elab : Type -> Type where
105data Elab : Type -> Type where
106 -- obligatory control stuff
106 -- obligatory control stuff
107− prim__PureElab : a -> Elab a
107+ Prim__PureElab : a -> Elab a
108− prim__BindElab : {a, b : Type} -> Elab a -> (a -> Elab b) -> Elab b
108+ Prim__BindElab : {a, b : Type} -> Elab a -> (a -> Elab b) -> Elab b
110− prim__Try : {a : Type} -> Elab a -> Elab a -> Elab a
110+ Prim__Try : {a : Type} -> Elab a -> Elab a -> Elab a
111− prim__Fail : {a : Type} -> List ErrorReportPart -> Elab a
111+ Prim__Fail : {a : Type} -> List ErrorReportPart -> Elab a
113− prim__Env : Elab (List (TTName, Binder TT))
113+ Prim__Env : Elab (List (TTName, Binder TT))
114− prim__Goal : Elab (TTName, TT)
114+ Prim__Goal : Elab (TTName, TT)
115− prim__Holes : Elab (List TTName)
115+ Prim__Holes : Elab (List TTName)
116− prim__Guess : Elab (Maybe TT)
116+ Prim__Guess : Elab (Maybe TT)
117− prim__LookupTy : TTName -> Elab (List (TTName, NameType, TT))
117+ Prim__LookupTy : TTName -> Elab (List (TTName, NameType, TT))
118− prim__LookupDatatype : TTName -> Elab (List Datatype)
118+ Prim__LookupDatatype : TTName -> Elab (List Datatype)
119− prim__LookupArgs : TTName -> Elab (List (TTName, List FunArg, Raw))
119+ Prim__LookupArgs : TTName -> Elab (List (TTName, List FunArg, Raw))
121− prim__Check : List (TTName, Binder TT) -> Raw -> Elab (TT, TT)
121+ Prim__Check : List (TTName, Binder TT) -> Raw -> Elab (TT, TT)
123− prim__SourceLocation : Elab SourceLocation
123+ Prim__SourceLocation : Elab SourceLocation
124− prim__Namespace : Elab (List String)
124+ Prim__Namespace : Elab (List String)
126− prim__Gensym : String -> Elab TTName
126+ Prim__Gensym : String -> Elab TTName
128− prim__Solve : Elab ()
128+ Prim__Solve : Elab ()
129− prim__Fill : Raw -> Elab ()
129+ Prim__Fill : Raw -> Elab ()
130− prim__Apply : Raw -> List Bool -> Elab (List (TTName, TTName))
130+ Prim__Apply : Raw -> List Bool -> Elab (List (TTName, TTName))
131− prim__MatchApply : Raw -> List Bool -> Elab (List (TTName, TTName))
131+ Prim__MatchApply : Raw -> List Bool -> Elab (List (TTName, TTName))
132− prim__Focus : TTName -> Elab ()
132+ Prim__Focus : TTName -> Elab ()
133− prim__Unfocus : TTName -> Elab ()
133+ Prim__Unfocus : TTName -> Elab ()
134− prim__Attack : Elab ()
134+ Prim__Attack : Elab ()
136− prim__Rewrite : Raw -> Elab ()
136+ Prim__Rewrite : Raw -> Elab ()
138− prim__Claim : TTName -> Raw -> Elab ()
138+ Prim__Claim : TTName -> Raw -> Elab ()
139− prim__Intro : Maybe TTName -> Elab ()
139+ Prim__Intro : Maybe TTName -> Elab ()
140− prim__Forall : TTName -> Raw -> Elab ()
140+ Prim__Forall : TTName -> Raw -> Elab ()
141− prim__PatVar : TTName -> Elab ()
141+ Prim__PatVar : TTName -> Elab ()
142− prim__PatBind : TTName -> Elab ()
142+ Prim__PatBind : TTName -> Elab ()
143− prim__LetBind : TTName -> Raw -> Raw -> Elab ()
143+ Prim__LetBind : TTName -> Raw -> Raw -> Elab ()
145− prim__Compute : Elab ()
145+ Prim__Compute : Elab ()
146− prim__Normalise : (List (TTName, Binder TT)) -> TT -> Elab TT
146+ Prim__Normalise : (List (TTName, Binder TT)) -> TT -> Elab TT
147− prim__Whnf : TT -> Elab TT
147+ Prim__Whnf : TT -> Elab TT
148− prim__Converts : (List (TTName, Binder TT)) -> TT -> TT -> Elab ()
148+ Prim__Converts : (List (TTName, Binder TT)) -> TT -> TT -> Elab ()
150− prim__DeclareType : TyDecl -> Elab ()
150+ Prim__DeclareType : TyDecl -> Elab ()
151− prim__DefineFunction : FunDefn -> Elab ()
151+ Prim__DefineFunction : FunDefn -> Elab ()
152− prim__AddInstance : TTName -> TTName -> Elab ()
152+ Prim__AddInstance : TTName -> TTName -> Elab ()
153− prim__IsTCName : TTName -> Elab Bool
153+ Prim__IsTCName : TTName -> Elab Bool
155− prim__ResolveTC : TTName -> Elab ()
155+ Prim__ResolveTC : TTName -> Elab ()
156− prim__Search : Int -> List TTName -> Elab ()
156+ Prim__Search : Int -> List TTName -> Elab ()
157− prim__RecursiveElab : Raw -> Elab () -> Elab (TT, TT)
157+ Prim__RecursiveElab : Raw -> Elab () -> Elab (TT, TT)
159− prim__Fixity : String -> Elab Fixity
159+ Prim__Fixity : String -> Elab Fixity
161− prim__Debug : {a : Type} -> List ErrorReportPart -> Elab a
161+ Prim__Debug : {a : Type} -> List ErrorReportPart -> Elab a
162− prim__Metavar : TTName -> Elab ()
162+ Prim__Metavar : TTName -> Elab ()
164-------------
164-------------
165-- Public API
165-- Public API
@@ -167,47 +167,47 @@ data Elab : Type -> Type where
167%access public
167%access public
168namespace Tactics
168namespace Tactics
169 instance Functor Elab where
169 instance Functor Elab where
170− map f t = prim__BindElab t (\x => prim__PureElab (f x))
170+ map f t = Prim__BindElab t (\x => Prim__PureElab (f x))
172 instance Applicative Elab where
172 instance Applicative Elab where
173− pure x = prim__PureElab x
173+ pure x = Prim__PureElab x
174− f <*> x = prim__BindElab f $ \g =>
174+ f <*> x = Prim__BindElab f $ \g =>
175− prim__BindElab x $ \y =>
175+ Prim__BindElab x $ \y =>
176− prim__PureElab $ g y
176+ Prim__PureElab $ g y
178 ||| The Alternative instance on Elab represents left-biased error
178 ||| The Alternative instance on Elab represents left-biased error
179 ||| handling. In other words, `t <|> t'` will run `t`, and if it
179 ||| handling. In other words, `t <|> t'` will run `t`, and if it
180 ||| fails, roll back the elaboration state and run `t'`.
180 ||| fails, roll back the elaboration state and run `t'`.
181 instance Alternative Elab where
181 instance Alternative Elab where
182− empty = prim__Fail [TextPart "empty"]
182+ empty = Prim__Fail [TextPart "empty"]
183− x <|> y = prim__Try x y
183+ x <|> y = Prim__Try x y
185 instance Monad Elab where
185 instance Monad Elab where
186− x >>= f = prim__BindElab x f
186+ x >>= f = Prim__BindElab x f
188 ||| Halt elaboration with an error
188 ||| Halt elaboration with an error
189 fail : List ErrorReportPart -> Elab a
189 fail : List ErrorReportPart -> Elab a
190− fail err = prim__Fail err
190+ fail err = Prim__Fail err
192 ||| Look up the lexical binding at the focused hole. Fails if no holes are present.
192 ||| Look up the lexical binding at the focused hole. Fails if no holes are present.
193 getEnv : Elab (List (TTName, Binder TT))
193 getEnv : Elab (List (TTName, Binder TT))
194− getEnv = prim__Env
194+ getEnv = Prim__Env
196 ||| Get the name and type of the focused hole. Fails if not holes are present.
196 ||| Get the name and type of the focused hole. Fails if not holes are present.
197 getGoal : Elab (TTName, TT)
197 getGoal : Elab (TTName, TT)
198− getGoal = prim__Goal
198+ getGoal = Prim__Goal
200 ||| Get the hole queue, in order.
200 ||| Get the hole queue, in order.
201 getHoles : Elab (List TTName)
201 getHoles : Elab (List TTName)
202− getHoles = prim__Holes
202+ getHoles = Prim__Holes
204 ||| If the current hole contains a guess, return it. Otherwise, fail.
204 ||| If the current hole contains a guess, return it. Otherwise, fail.
205 getGuess : Elab (Maybe TT)
205 getGuess : Elab (Maybe TT)
206− getGuess = prim__Guess
206+ getGuess = Prim__Guess
208 ||| Look up the types of every overloading of a name.
208 ||| Look up the types of every overloading of a name.
209 lookupTy : TTName -> Elab (List (TTName, NameType, TT))
209 lookupTy : TTName -> Elab (List (TTName, NameType, TT))
210− lookupTy n = prim__LookupTy n
210+ lookupTy n = Prim__LookupTy n
212 ||| Get the type of a fully-qualified name. Fail if it doesn not
212 ||| Get the type of a fully-qualified name. Fail if it doesn not
213 ||| resolve uniquely.
213 ||| resolve uniquely.
@@ -220,7 +220,7 @@ namespace Tactics
220 ||| Find the reflected representation of all datatypes whose names
220 ||| Find the reflected representation of all datatypes whose names
221 ||| are overloadings of some name.
221 ||| are overloadings of some name.
222 lookupDatatype : TTName -> Elab (List Datatype)
222 lookupDatatype : TTName -> Elab (List Datatype)
223− lookupDatatype n = prim__LookupDatatype n
223+ lookupDatatype n = Prim__LookupDatatype n
225 ||| Find the reflected representation of a datatype, given its
225 ||| Find the reflected representation of a datatype, given its
226 ||| fully-qualified name. Fail if the name does not uniquely resolve
226 ||| fully-qualified name. Fail if the name does not uniquely resolve
@@ -234,7 +234,7 @@ namespace Tactics
235 ||| Get the argument specification for each overloading of a name.
235 ||| Get the argument specification for each overloading of a name.
236 lookupArgs : TTName -> Elab (List (TTName, List FunArg, Raw))
236 lookupArgs : TTName -> Elab (List (TTName, List FunArg, Raw))
237− lookupArgs n = prim__LookupArgs n
237+ lookupArgs n = Prim__LookupArgs n
239 ||| Get the argument specification for a name. Fail if the name does
239 ||| Get the argument specification for a name. Fail if the name does
240 ||| not uniquely resolve.
240 ||| not uniquely resolve.
@@ -249,7 +249,7 @@ namespace Tactics
249 ||| @ env the environment within which to check the type
249 ||| @ env the environment within which to check the type
250 ||| @ tm the term to check
250 ||| @ tm the term to check
251 check : (env : List (TTName, Binder TT)) -> (tm : Raw) -> Elab (TT, TT)
251 check : (env : List (TTName, Binder TT)) -> (tm : Raw) -> Elab (TT, TT)
252− check env tm = prim__Check env tm
252+ check env tm = Prim__Check env tm
255 ||| Generate a unique name based on some hint.
255 ||| Generate a unique name based on some hint.
@@ -257,16 +257,16 @@ namespace Tactics
257 ||| **NB**: the generated name is unique _for this run of the
257 ||| **NB**: the generated name is unique _for this run of the
258 ||| elaborator_. Do not assume that they are globally unique.
258 ||| elaborator_. Do not assume that they are globally unique.
259 gensym : (hint : String) -> Elab TTName
259 gensym : (hint : String) -> Elab TTName
260− gensym hint = prim__Gensym hint
260+ gensym hint = Prim__Gensym hint
262 ||| Substitute a guess into a hole.
262 ||| Substitute a guess into a hole.
263 solve : Elab ()
263 solve : Elab ()
264− solve = prim__Solve
264+ solve = Prim__Solve
266 ||| Place a term into a hole, unifying its type. Fails if the focus
266 ||| Place a term into a hole, unifying its type. Fails if the focus
267 ||| is not a hole.
267 ||| is not a hole.
268 fill : Raw -> Elab ()
268 fill : Raw -> Elab ()
269− fill tm = prim__Fill tm
269+ fill tm = Prim__Fill tm
271 ||| Attempt to apply an operator to fill the current hole,
271 ||| Attempt to apply an operator to fill the current hole,
272 ||| potentially solving arguments by unification.
272 ||| potentially solving arguments by unification.
@@ -283,7 +283,7 @@ namespace Tactics
283 ||| where the Boolean states whether or not to attempt to solve
283 ||| where the Boolean states whether or not to attempt to solve
284 ||| the argument by unification.
284 ||| the argument by unification.
285 apply : (op : Raw) -> (argSpec : List Bool) -> Elab (List TTName)
285 apply : (op : Raw) -> (argSpec : List Bool) -> Elab (List TTName)
286− apply tm argSpec = map snd <$> prim__Apply tm argSpec
286+ apply tm argSpec = map snd <$> Prim__Apply tm argSpec
288 ||| Attempt to apply an operator to fill the current hole,
288 ||| Attempt to apply an operator to fill the current hole,
289 ||| potentially solving arguments by matching.
289 ||| potentially solving arguments by matching.
@@ -301,19 +301,19 @@ namespace Tactics
301 ||| the argument by matching.
301 ||| the argument by matching.
303 matchApply : (op : Raw) -> (argSpec : List Bool) -> Elab (List TTName)
303 matchApply : (op : Raw) -> (argSpec : List Bool) -> Elab (List TTName)
304− matchApply tm argSpec = map snd <$> prim__Apply tm argSpec
304+ matchApply tm argSpec = map snd <$> Prim__Apply tm argSpec
306 ||| Move the focus to the specified hole. Fails if the hole does not
306 ||| Move the focus to the specified hole. Fails if the hole does not
307 ||| exist.
307 ||| exist.
309 ||| @ hole the hole to focus on
309 ||| @ hole the hole to focus on
310 focus : (hole : TTName) -> Elab ()
310 focus : (hole : TTName) -> Elab ()
311− focus hole = prim__Focus hole
311+ focus hole = Prim__Focus hole
313 ||| Send the currently-focused hole to the end of the hole queue and
313 ||| Send the currently-focused hole to the end of the hole queue and
314 ||| focus on the next hole.
314 ||| focus on the next hole.
315 unfocus : TTName -> Elab ()
315 unfocus : TTName -> Elab ()
316− unfocus hole = prim__Unfocus hole
316+ unfocus hole = Prim__Unfocus hole
318 ||| Convert a hole to make it suitable for bindings - that is,
318 ||| Convert a hole to make it suitable for bindings - that is,
319 ||| transform it such that it has the form `?h : t . h` as opposed to
319 ||| transform it such that it has the form `?h : t . h` as opposed to
@@ -324,7 +324,7 @@ namespace Tactics
324 ||| sense. This tactic creates a new hole of the proper form, and
324 ||| sense. This tactic creates a new hole of the proper form, and
325 ||| points the old hole at it.
325 ||| points the old hole at it.
326 attack : Elab ()
326 attack : Elab ()
327− attack = prim__Attack
327+ attack = Prim__Attack
329 ||| Introduce a new hole with a specified name and type.
329 ||| Introduce a new hole with a specified name and type.
@@ -332,7 +332,7 @@ namespace Tactics
332 ||| will be immediately after it in the hole queue. Because this
332 ||| will be immediately after it in the hole queue. Because this
333 ||| tactic introduces a new binding, you may need to `attack` first.
333 ||| tactic introduces a new binding, you may need to `attack` first.
334 claim : TTName -> Raw -> Elab ()
334 claim : TTName -> Raw -> Elab ()
335− claim n ty = prim__Claim n ty
335+ claim n ty = Prim__Claim n ty
337 ||| Introduce a lambda binding around the current hole and focus on
337 ||| Introduce a lambda binding around the current hole and focus on
338 ||| the body. Requires that the hole be in binding form (use
338 ||| the body. Requires that the hole be in binding form (use
@@ -340,7 +340,7 @@ namespace Tactics
341 ||| @ n the name to use for the argument
341 ||| @ n the name to use for the argument
342 intro : (n : TTName) -> Elab ()
342 intro : (n : TTName) -> Elab ()
343− intro n = prim__Intro (Just n)
343+ intro n = Prim__Intro (Just n)
345 ||| Introduce a lambda binding around the current hole and focus on
345 ||| Introduce a lambda binding around the current hole and focus on
346 ||| the body, using the name provided by the type of the
346 ||| the body, using the name provided by the type of the
@@ -349,7 +349,7 @@ namespace Tactics
349 ||| Requires that the hole be immediately under its binder (use
349 ||| Requires that the hole be immediately under its binder (use
350 ||| `attack` if it might not be).
350 ||| `attack` if it might not be).
351 intro' : Elab ()
351 intro' : Elab ()
352− intro' = prim__Intro Nothing
352+ intro' = Prim__Intro Nothing
354 ||| Introduce a dependent function type binding into the current hole,
354 ||| Introduce a dependent function type binding into the current hole,
355 ||| and focus on the body.
355 ||| and focus on the body.
@@ -357,18 +357,18 @@ namespace Tactics
357 ||| Requires that the hole be immediately under its binder (use
357 ||| Requires that the hole be immediately under its binder (use
358 ||| `attack` if it might not be).
358 ||| `attack` if it might not be).
359 forall : TTName -> Raw -> Elab ()
359 forall : TTName -> Raw -> Elab ()
360− forall n ty = prim__Forall n ty
360+ forall n ty = Prim__Forall n ty
362 ||| Convert a hole into a pattern variable.
362 ||| Convert a hole into a pattern variable.
363 patvar : TTName -> Elab ()
363 patvar : TTName -> Elab ()
364− patvar n = prim__PatVar n
364+ patvar n = Prim__PatVar n
366 ||| Introduce a new pattern binding.
366 ||| Introduce a new pattern binding.
368 ||| Requires that the hole be immediately under its binder (use
368 ||| Requires that the hole be immediately under its binder (use
369 ||| `attack` if it might not be).
369 ||| `attack` if it might not be).
370 patbind : TTName -> Elab ()
370 patbind : TTName -> Elab ()
371− patbind n = prim__PatBind n
371+ patbind n = Prim__PatBind n
373 ||| Introduce a new let binding.
373 ||| Introduce a new let binding.
@@ -379,24 +379,24 @@ namespace Tactics
379 ||| @ ty the type of the term to be let-bound
379 ||| @ ty the type of the term to be let-bound
380 ||| @ tm the term to be bound
380 ||| @ tm the term to be bound
381 letbind : (n : TTName) -> (ty, tm : Raw) -> Elab ()
381 letbind : (n : TTName) -> (ty, tm : Raw) -> Elab ()
382− letbind n ty tm = prim__LetBind n ty tm
382+ letbind n ty tm = Prim__LetBind n ty tm
384 ||| Normalise the goal.
384 ||| Normalise the goal.
385 compute : Elab ()
385 compute : Elab ()
386− compute = prim__Compute
386+ compute = Prim__Compute
388 ||| Normalise a term in some lexical environment
388 ||| Normalise a term in some lexical environment
390 ||| @ env the environment in which to compute (get one of these from `getEnv`)
390 ||| @ env the environment in which to compute (get one of these from `getEnv`)
391 ||| @ term the term to normalise
391 ||| @ term the term to normalise
392 normalise : (env : List (TTName, Binder TT)) -> (term : TT) -> Elab TT
392 normalise : (env : List (TTName, Binder TT)) -> (term : TT) -> Elab TT
393− normalise env term = prim__Normalise env term
393+ normalise env term = Prim__Normalise env term
395 ||| Reduce a closed term to weak-head normal form
395 ||| Reduce a closed term to weak-head normal form
397 ||| @ term the term to reduce
397 ||| @ term the term to reduce
398 whnf : (term : TT) -> Elab TT
398 whnf : (term : TT) -> Elab TT
399− whnf term = prim__Whnf term
399+ whnf term = Prim__Whnf term
401 ||| Check that two terms are convertable in the current context and
401 ||| Check that two terms are convertable in the current context and
402 ||| in some environment.
402 ||| in some environment.
@@ -405,7 +405,7 @@ namespace Tactics
405 ||| @ term1 the first term to convert
405 ||| @ term1 the first term to convert
406 ||| @ term2 the second term to convert
406 ||| @ term2 the second term to convert
407 convertsInEnv : (env : List (TTName, Binder TT)) -> (term1, term2 : TT) -> Elab ()
407 convertsInEnv : (env : List (TTName, Binder TT)) -> (term1, term2 : TT) -> Elab ()
408− convertsInEnv env term1 term2 = prim__Converts env term1 term2
408+ convertsInEnv env term1 term2 = Prim__Converts env term1 term2
410 ||| Check that two terms are convertable in the current context and environment
410 ||| Check that two terms are convertable in the current context and environment
@@ -416,7 +416,7 @@ namespace Tactics
417 ||| Find the source context for the elaboration script
417 ||| Find the source context for the elaboration script
418 getSourceLocation : Elab SourceLocation
418 getSourceLocation : Elab SourceLocation
419− getSourceLocation = prim__SourceLocation
419+ getSourceLocation = Prim__SourceLocation
421 ||| Attempt to solve the current goal with the source code location
421 ||| Attempt to solve the current goal with the source code location
422 sourceLocation : Elab ()
422 sourceLocation : Elab ()
@@ -430,7 +430,7 @@ namespace Tactics
430 ||| The namespace is represented as a reverse-order list of strings,
430 ||| The namespace is represented as a reverse-order list of strings,
431 ||| just as in the representation of names.
431 ||| just as in the representation of names.
432 currentNamespace : Elab (List String)
432 currentNamespace : Elab (List String)
433− currentNamespace = prim__Namespace
433+ currentNamespace = Prim__Namespace
435 ||| Attempt to rewrite the goal using an equality.
435 ||| Attempt to rewrite the goal using an equality.
@@ -443,48 +443,48 @@ namespace Tactics
443 ||| requires that the hole be immediately under its binder (use
443 ||| requires that the hole be immediately under its binder (use
444 ||| `attack` if it might not be).
444 ||| `attack` if it might not be).
445 rewriteWith : Raw -> Elab ()
445 rewriteWith : Raw -> Elab ()
446− rewriteWith rule = prim__Rewrite rule
446+ rewriteWith rule = Prim__Rewrite rule
448 ||| Add a type declaration to the global context.
448 ||| Add a type declaration to the global context.
449 declareType : TyDecl -> Elab ()
449 declareType : TyDecl -> Elab ()
450− declareType decl = prim__DeclareType decl
450+ declareType decl = Prim__DeclareType decl
452 ||| Define a function in the global context. The function must have
452 ||| Define a function in the global context. The function must have
453 ||| already been declared, either in ordinary Idris code or using
453 ||| already been declared, either in ordinary Idris code or using
454 ||| `declareType`.
454 ||| `declareType`.
455 defineFunction : FunDefn -> Elab ()
455 defineFunction : FunDefn -> Elab ()
456− defineFunction defun = prim__DefineFunction defun
456+ defineFunction defun = Prim__DefineFunction defun
458 ||| Register a new instance for type class resolution.
458 ||| Register a new instance for type class resolution.
460 ||| @ className the name of the class for which an instance is being registered
460 ||| @ className the name of the class for which an instance is being registered
461 ||| @ instName the name of the definition to use in instance search
461 ||| @ instName the name of the definition to use in instance search
462 addInstance : (className, instName : TTName) -> Elab ()
462 addInstance : (className, instName : TTName) -> Elab ()
463− addInstance className instName = prim__AddInstance className instName
463+ addInstance className instName = Prim__AddInstance className instName
465 ||| Determine whether a name denotes a class.
465 ||| Determine whether a name denotes a class.
467 ||| @ name a name that might denote a class.
467 ||| @ name a name that might denote a class.
468 isTCName : (name : TTName) -> Elab Bool
468 isTCName : (name : TTName) -> Elab Bool
469− isTCName name = prim__IsTCName name
469+ isTCName name = Prim__IsTCName name
471 ||| Attempt to solve the current goal with a type class dictionary
471 ||| Attempt to solve the current goal with a type class dictionary
473 ||| @ fn the name of the definition being elaborated (to prevent Idris
473 ||| @ fn the name of the definition being elaborated (to prevent Idris
474 ||| from looping)
474 ||| from looping)
475 resolveTC : (fn : TTName) -> Elab ()
475 resolveTC : (fn : TTName) -> Elab ()
476− resolveTC fn = prim__ResolveTC fn
476+ resolveTC fn = Prim__ResolveTC fn
478 ||| Use Idris's internal proof search.
478 ||| Use Idris's internal proof search.
479 search : Elab ()
479 search : Elab ()
480− search = prim__Search 100 []
480+ search = Prim__Search 100 []
482 ||| Use Idris's internal proof search, with more control.
482 ||| Use Idris's internal proof search, with more control.
484 ||| @ depth the search depth
484 ||| @ depth the search depth
485 ||| @ hints additional names to try
485 ||| @ hints additional names to try
486 search' : (depth : Int) -> (hints : List TTName) -> Elab ()
486 search' : (depth : Int) -> (hints : List TTName) -> Elab ()
487− search' depth hints = prim__Search depth hints
487+ search' depth hints = Prim__Search depth hints
489 ||| Look up the declared fixity for an operator.
489 ||| Look up the declared fixity for an operator.
@@ -493,14 +493,14 @@ namespace Tactics
494 ||| @ operator the operator string to look up
494 ||| @ operator the operator string to look up
495 operatorFixity : (operator : String) -> Elab Fixity
495 operatorFixity : (operator : String) -> Elab Fixity
496− operatorFixity operator = prim__Fixity operator
496+ operatorFixity operator = Prim__Fixity operator
498 ||| Halt elaboration, dumping the internal state for inspection.
498 ||| Halt elaboration, dumping the internal state for inspection.
500 ||| This is intended for elaboration script developers, not for
500 ||| This is intended for elaboration script developers, not for
501 ||| end-users. Use `fail` for final scripts.
501 ||| end-users. Use `fail` for final scripts.
502 debug : Elab a
502 debug : Elab a
503− debug = prim__Debug []
503+ debug = Prim__Debug []
505 ||| Halt elaboration, dumping the internal state and displaying a
505 ||| Halt elaboration, dumping the internal state and displaying a
506 ||| message.
506 ||| message.
@@ -510,17 +510,17 @@ namespace Tactics
511 ||| @ msg the message to display
511 ||| @ msg the message to display
512 debugMessage : (msg : List ErrorReportPart) -> Elab a
512 debugMessage : (msg : List ErrorReportPart) -> Elab a
513− debugMessage msg = prim__Debug msg
513+ debugMessage msg = Prim__Debug msg
515 ||| Create a new top-level metavariable to solve the current hole.
515 ||| Create a new top-level metavariable to solve the current hole.
517 ||| @ name the name for the top-level variable
517 ||| @ name the name for the top-level variable
518 metavar : (name : TTName) -> Elab ()
518 metavar : (name : TTName) -> Elab ()
519− metavar name = prim__Metavar name
519+ metavar name = Prim__Metavar name
521 ||| Recursively invoke the reflected elaborator with some goal.
521 ||| Recursively invoke the reflected elaborator with some goal.
523 ||| The result is the final term and its type.
523 ||| The result is the final term and its type.
524 runElab : Raw -> Elab () -> Elab (TT, TT)
524 runElab : Raw -> Elab () -> Elab (TT, TT)
525− runElab goal script = prim__RecursiveElab goal script
525+ runElab goal script = Prim__RecursiveElab goal script