aboutsummaryrefslogtreecommitdiff
path: root/library/impargs.mli
blob: 51ada5845a1d21145f7416ed3b6988e6dd8ea7e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
(* $Id$ *)

(*i*)
open Names
open Term
(*i*)

(* Implicit arguments. Here we store the implicit arguments. Notice that we 
   are outside the kernel, which knows nothing about implicit arguments. *)

type implicits =
  | Impl_auto of int list
  | Impl_manual of int list
  | No_impl

val implicit_args : bool ref

val list_of_implicits : implicits -> int list

val declare_constant_implicits : section_path -> unit
val declare_constant_manual_implicits : section_path -> int list -> unit
val constant_implicits : section_path -> implicits

val declare_inductive_implicits : section_path -> unit
val inductive_implicits : section_path * int -> implicits
val constructor_implicits : (section_path * int) * int -> implicits

val mconstr_implicits : constr -> int list
val mind_implicits : constr -> int list
val implicits_of_var : Names.path_kind -> identifier -> int list