@@ -106,7 +106,6 @@ let escape_objects id escape = match escape.escape_objects with
106106 for Synterp and Interp. *)
107107module type ModActions = sig
108108
109- type typexpr
110109 type env
111110
112111 val stage : Summary.Stage .t
@@ -127,11 +126,9 @@ module type ModActions = sig
127126
128127end
129128
130- module SynterpActions : ModActions with
131- type env = unit with
132- type typexpr = Constrexpr .universe_decl_expr option * Constrexpr .constr_expr =
129+ module SynterpActions : ModActions
130+ with type env = unit =
133131struct
134- type typexpr = Constrexpr .universe_decl_expr option * Constrexpr .constr_expr
135132 type env = unit
136133 let stage = Summary.Stage. Synterp
137134 let substobjs_table_name = " MODULE-SYNTAX-SUBSTOBJS"
@@ -166,10 +163,8 @@ struct
166163end
167164
168165module InterpActions : ModActions
169- with type env = Environ .env
170- with type typexpr = Constr .t * UVars.AbstractContext .t option =
166+ with type env = Environ. env =
171167struct
172- type typexpr = Constr .t * UVars.AbstractContext .t option
173168 type env = Environ .env
174169 let stage = Summary.Stage. Interp
175170 let substobjs_table_name = " MODULE-SUBSTOBJS"
@@ -224,10 +219,9 @@ type module_objects =
224219(* * The [StagedModS] abstraction describes module operations at a given stage. *)
225220module type StagedModS = sig
226221
227- type typexpr
228222 type env
229223
230- val get_module_sobjs : bool -> env -> Entries. inline -> typexpr module_alg_expr -> substitutive_objects
224+ val get_module_sobjs : bool -> env -> Entries .inline -> _ module_alg_expr -> substitutive_objects
231225
232226 val load_keep : int -> full_path -> ModPath .t -> keep_objects -> unit
233227 val load_escape : int -> full_path -> ModPath .t -> escape_objects -> unit
@@ -239,7 +233,7 @@ module type StagedModS = sig
239233
240234 val expand_aobjs : Libobject .algebraic_objects -> Libobject .t list
241235
242- val get_applications : typexpr module_alg_expr -> ModPath .t * ModPath .t list
236+ val get_applications : _ module_alg_expr -> ModPath .t * ModPath .t list
243237 val debug_print_modtab : unit -> Pp .t
244238
245239 module ModObjs : sig val all : unit -> module_objects ModPath.Map .t end
@@ -296,7 +290,6 @@ and subst_objects subst seg =
296290 that is common to all stages. *)
297291module StagedMod (Actions : ModActions ) = struct
298292
299- type typexpr = Actions .typexpr
300293type env = Actions .env
301294
302295(* * ModSubstObjs : a cache of module substitutive objects
@@ -772,12 +765,10 @@ end
772765
773766module SynterpVisitor : StagedModS
774767 with type env = SynterpActions. env
775- with type typexpr = Constrexpr. universe_decl_expr option * Constrexpr. constr_expr
776768 = StagedMod (SynterpActions )
777769
778770module InterpVisitor : StagedModS
779771 with type env = InterpActions. env
780- with type typexpr = Constr. t * UVars.AbstractContext. t option
781772 = StagedMod (InterpActions )
782773
783774(* * {6 Modules : start, end, declare} *)
0 commit comments