aboutsummaryrefslogtreecommitdiff
path: root/kernel/entries.mli
diff options
context:
space:
mode:
authorMatthieu Sozeau2014-11-22 19:34:25 +0100
committerMatthieu Sozeau2014-11-23 15:28:41 +0100
commitff0a051caf031fb427007714f6325c74b8893702 (patch)
treefbb4b2fae772c9a0fe6a8b5d7310eb60dae7c045 /kernel/entries.mli
parentc81065e5cdc6d803bd67eccf93dc8fbb640c6892 (diff)
Pass around information on the use of template polymorphism for
inductive types (i.e., ones declared with an explicit anonymous Type at the conclusion of their arity). With this change one can force inductives to live in higher universes even in the non-fully universe polymorphic case (e.g. bug #3821).
Diffstat (limited to 'kernel/entries.mli')
-rw-r--r--kernel/entries.mli3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/entries.mli b/kernel/entries.mli
index f6958849b0..baeec31b4b 100644
--- a/kernel/entries.mli
+++ b/kernel/entries.mli
@@ -37,6 +37,7 @@ then, in i{^ th} block, [mind_entry_params] is [xn:Xn;...;x1:X1];
type one_inductive_entry = {
mind_entry_typename : Id.t;
mind_entry_arity : constr;
+ mind_entry_template : bool; (* Use template polymorphism *)
mind_entry_consnames : Id.t list;
mind_entry_lc : constr list }
@@ -48,7 +49,7 @@ type mutual_inductive_entry = {
mind_entry_finite : Decl_kinds.recursivity_kind;
mind_entry_params : (Id.t * local_entry) list;
mind_entry_inds : one_inductive_entry list;
- mind_entry_polymorphic : bool;
+ mind_entry_polymorphic : bool;
mind_entry_universes : Univ.universe_context;
mind_entry_private : bool option }