Skip to content

Commit 93c35c9

Browse files
Merge PR #21840: Declaremods remove "typexpr" from staging functors
Reviewed-by: ppedrot Co-authored-by: ppedrot <ppedrot@users.noreply.github.com>
2 parents a1857c5 + fb484c4 commit 93c35c9

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

vernac/declaremods.ml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ let escape_objects id escape = match escape.escape_objects with
106106
for Synterp and Interp. *)
107107
module 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

128127
end
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 =
133131
struct
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
166163
end
167164

168165
module InterpActions : ModActions
169-
with type env = Environ.env
170-
with type typexpr = Constr.t * UVars.AbstractContext.t option =
166+
with type env = Environ.env =
171167
struct
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. *)
225220
module 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. *)
297291
module StagedMod(Actions : ModActions) = struct
298292

299-
type typexpr = Actions.typexpr
300293
type env = Actions.env
301294

302295
(** ModSubstObjs : a cache of module substitutive objects
@@ -772,12 +765,10 @@ end
772765

773766
module SynterpVisitor : StagedModS
774767
with type env = SynterpActions.env
775-
with type typexpr = Constrexpr.universe_decl_expr option * Constrexpr.constr_expr
776768
= StagedMod(SynterpActions)
777769

778770
module 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

Comments
 (0)