aboutsummaryrefslogtreecommitdiff
path: root/printing
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2020-02-14 23:48:57 +0100
committerPierre-Marie Pédrot2020-02-14 23:48:57 +0100
commit4de476c53d85be4dd266cfe5fd5f2ddec9163a5b (patch)
tree1f8cb4ea4350ee9dfef0d65a90aebdd3d939c1d5 /printing
parentbdc8e29d806ab7e9bbd0491bf237890b7934795a (diff)
parent0f58738351db02f30ac43ec52517c54b315d5886 (diff)
Merge PR #11557: Use thunks to univ instead of lazy constr for template typing
Reviewed-by: ppedrot
Diffstat (limited to 'printing')
-rw-r--r--printing/printmod.ml8
1 files changed, 4 insertions, 4 deletions
diff --git a/printing/printmod.ml b/printing/printmod.ml
index a5fd7f69ed..b84113bde2 100644
--- a/printing/printmod.ml
+++ b/printing/printmod.ml
@@ -85,8 +85,8 @@ let print_constructors envpar sigma names types =
in
hv 0 (str " " ++ pc)
-let build_ind_type env mip =
- Inductive.type_of_inductive env mip
+let build_ind_type mip =
+ Inductive.type_of_inductive mip
let print_one_inductive env sigma mib ((_,i) as ind) =
let u = Univ.make_abstract_instance (Declareops.inductive_polymorphic_context mib) in
@@ -94,7 +94,7 @@ let print_one_inductive env sigma mib ((_,i) as ind) =
let params = Inductive.inductive_paramdecls (mib,u) in
let nparamdecls = Context.Rel.length params in
let args = Context.Rel.to_extended_list mkRel 0 params in
- let arity = hnf_prod_applist_assum env nparamdecls (build_ind_type env ((mib,mip),u)) args in
+ let arity = hnf_prod_applist_assum env nparamdecls (build_ind_type ((mib,mip),u)) args in
let cstrtypes = Inductive.type_of_constructors (ind,u) (mib,mip) in
let cstrtypes = Array.map (fun c -> hnf_prod_applist_assum env nparamdecls c args) cstrtypes in
let envpar = push_rel_context params env in
@@ -146,7 +146,7 @@ let print_record env mind mib udecl =
let params = Inductive.inductive_paramdecls (mib,u) in
let nparamdecls = Context.Rel.length params in
let args = Context.Rel.to_extended_list mkRel 0 params in
- let arity = hnf_prod_applist_assum env nparamdecls (build_ind_type env ((mib,mip),u)) args in
+ let arity = hnf_prod_applist_assum env nparamdecls (build_ind_type ((mib,mip),u)) args in
let cstrtypes = Inductive.type_of_constructors ((mind,0),u) (mib,mip) in
let cstrtype = hnf_prod_applist_assum env nparamdecls cstrtypes.(0) args in
let fields = get_fields cstrtype in