Ocaml_typing.Includemodmodule Error : sig ... endval kind_of_field_desc : field_desc -> stringval field_desc : field_kind -> Ident.t -> field_descmodule FieldMap : Map.S with type key = field_descMap indexed by both field types and names. This avoids name clashes between different sorts of fields such as values and types.
val item_ident_name :
Types.signature_item ->
Ident.t * Ocaml_parsing.Location.t * field_descval is_runtime_component : Types.signature_item -> booltype modes = Includecore.mmodesval modes_unit : modesThe modes used for compilation unit inclusion check
val modes_toplevel : modesThe modes used for top-level inclusion check, where top-level is similiar to a structure
val modes_functor_param : Typedtree.mode_with_locks -> modesTakes the mode of functor argument, returns the modes suitable for modal inclusion check against the parameter.
val modes_functor_res : modesThe modes used for functor result inclusion check
val modtypes :
loc:Ocaml_parsing.Location.t ->
Env.t ->
mark:bool ->
modes:modes ->
Types.module_type ->
Types.module_type ->
Typedtree.module_coercionval modtypes_constraint :
shape:Shape.t ->
loc:Ocaml_parsing.Location.t ->
Env.t ->
mark:bool ->
modes:modes ->
Types.module_type ->
Types.module_type ->
Typedtree.module_coercion * Shape.tmodtypes_constraint ~shape ~loc env ~mark exp_modtype constraint_modtype checks that exp_modtype is a subtype of constraint_modtype, and returns the module coercion and the shape of the constrained module. It also marks as used paired items in positive position in exp_modtype, and also paired items in negative position in constraint_modtype. This marking in negative position allows to raise an unused item warning whenever an item in a functor parameter in constraint_modtype does not exist in exp_modtypes. This behaviour differs from the one in check_implementation and compunit which assumes that is not appropriate to raise warning about the interface file while typechecking the implementation file.
val strengthened_module_decl :
loc:Ocaml_parsing.Location.t ->
aliasable:bool ->
Env.t ->
mark:bool ->
mmodes:modes ->
Types.module_declaration ->
Path.t ->
Types.module_declaration ->
Typedtree.module_coercionval check_functor_application :
loc:Ocaml_parsing.Location.t ->
Env.t ->
Types.module_type ->
Path.t ->
Types.module_type ->
explanation optioncheck_functor_application ~loc env mty1 path1 mty2 checks that the functor application F(M) is well typed, where mty2 is the type of the argument of F and path1/mty1 is the path/unstrenghened type of M.
val check_modtype_equiv :
loc:Ocaml_parsing.Location.t ->
Env.t ->
Ident.t ->
Types.module_type ->
Types.module_type ->
unitval signatures :
Env.t ->
mark:bool ->
modes:modes ->
Types.signature ->
Types.signature ->
Typedtree.module_coercionval include_functor_signatures :
Env.t ->
mark:bool ->
Types.signature ->
Types.signature ->
(Ident.t * Typedtree.module_coercion) listval check_implementation :
Env.t ->
modes:modes ->
Types.signature ->
Types.signature ->
unitCheck an implementation against an interface
val compunit :
Env.t ->
mark:bool ->
string ->
Types.signature ->
string ->
Types.signature ->
Shape.t ->
Typedtree.module_coercion * Shape.tval compunit_as_argument :
Env.t ->
string ->
Types.signature ->
string ->
Types.signature ->
Typedtree.module_coercionval type_declarations :
loc:Ocaml_parsing.Location.t ->
Env.t ->
mark:bool ->
Ident.t ->
Types.type_declaration ->
Types.type_declaration ->
unitval print_coercion : Format.formatter -> Typedtree.module_coercion -> unittype pos = | Module of Ident.t| Modtype of Ident.t| Arg of Types.functor_parameter| Body of Types.functor_parameterexception Error of explanationtype application_name = | Anonymous_functor(functor (_:sig end) -> struct end)(Int)
| Full_application_path of Ocaml_parsing.Longident.tF(G(X).P)(Y)
| Named_leftmost_functor of Ocaml_parsing.Longident.tF(struct end)...(...)
exception Apply_error of {loc : Ocaml_parsing.Location.t;env : Env.t;app_name : application_name;mty_f : Types.module_type;args : (Error.functor_arg_descr * Types.module_type * Typedtree.mode_with_locks)
list;}val expand_module_alias :
strengthen:bool ->
Env.t ->
Path.t ->
Types.module_typemodule Functor_inclusion_diff : sig ... endmodule Functor_app_diff : sig ... end