Module Includemod
type mark=Type describing which arguments of an inclusion to consider as used for the usage warnings.
Mark_bothis the default.
val modtypes : loc:Location.t -> Env.t -> ?mark:mark -> Types.module_type -> Types.module_type -> Typedtree.module_coercionval check_modtype_inclusion : loc:Location.t -> Env.t -> Types.module_type -> Path.t -> Types.module_type -> unitcheck_modtype_inclusion ~loc env mty1 path1 mty2checks 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 signatures : Env.t -> ?mark:mark -> Types.signature -> Types.signature -> Typedtree.module_coercionval compunit : Env.t -> ?mark:mark -> string -> Types.signature -> string -> Types.signature -> Typedtree.module_coercionval type_declarations : loc:Location.t -> Env.t -> ?mark:mark -> Ident.t -> Types.type_declaration -> Types.type_declaration -> unitval print_coercion : Stdlib.Format.formatter -> Typedtree.module_coercion -> unit
type symptom=|Missing_field of Ident.t * Location.t * string|Value_descriptions of Ident.t * Types.value_description * Types.value_description|Type_declarations of Ident.t * Types.type_declaration * Types.type_declaration * Includecore.type_mismatch|Extension_constructors of Ident.t * Types.extension_constructor * Types.extension_constructor * Includecore.type_mismatch|Module_types of Types.module_type * Types.module_type|Modtype_infos of Ident.t * Types.modtype_declaration * Types.modtype_declaration|Modtype_permutation|Interface_mismatch of string * string|Class_type_declarations of Ident.t * Types.class_type_declaration * Types.class_type_declaration * Ctype.class_match_failure list|Class_declarations of Ident.t * Types.class_declaration * Types.class_declaration * Ctype.class_match_failure list|Unbound_modtype_path of Path.t|Unbound_module_path of Path.t|Invalid_module_alias of Path.ttype pos=|Module of Ident.t|Modtype of Ident.t|Arg of Ident.t|Body of Ident.ttype error= pos list * Env.t * symptom
exceptionError of error list
val report_error : Stdlib.Format.formatter -> error list -> unitval expand_module_alias : Env.t -> pos list -> Path.t -> Types.module_type