module Typemod:sig..end
Type-checking of the module language and typed ast plugin hooks
val type_module : Env.t -> Parsetree.module_expr -> Typedtree.module_expr
val type_structure : Env.t ->
       Parsetree.structure ->
       Location.t -> Typedtree.structure * Types.signature * Env.t
val type_toplevel_phrase : Env.t -> Parsetree.structure -> Typedtree.structure * Types.signature * Env.t
val type_implementation : string ->
       string ->
       string ->
       Env.t ->
       Parsetree.structure -> Typedtree.structure * Typedtree.module_coercion
val type_interface : string -> Env.t -> Parsetree.signature -> Typedtree.signature
val transl_signature : Env.t -> Parsetree.signature -> Typedtree.signature
val check_nongen_schemes : Env.t -> Types.signature -> unit
val type_open_ : ?used_slot:bool ref ->
       ?toplevel:bool ->
       Asttypes.override_flag ->
       Env.t -> Location.t -> Longident.t Asttypes.loc -> Path.t * Env.t
val modtype_of_package : Env.t ->
       Location.t ->
       Path.t -> Longident.t list -> Types.type_expr list -> Types.module_type
val simplify_signature : Types.signature -> Types.signature
val path_of_module : Typedtree.module_expr -> Path.t option
val save_signature : string ->
       Typedtree.signature ->
       string -> string -> Env.t -> Cmi_format.cmi_infos -> unit
val package_units : Env.t -> string list -> string -> string -> Typedtree.module_coercion
type error = 
| | 
Cannot_apply of  | 
| | 
Not_included of  | 
| | 
Cannot_eliminate_dependency of  | 
| | 
Signature_expected | 
| | 
Structure_expected of  | 
| | 
With_no_component of  | 
| | 
With_mismatch of  | 
| | 
With_makes_applicative_functor_ill_typed of  | 
| | 
With_changes_module_alias of  | 
| | 
With_cannot_remove_constrained_type | 
| | 
Repeated_name of  | 
| | 
Non_generalizable of  | 
| | 
Non_generalizable_class of  | 
| | 
Non_generalizable_module of  | 
| | 
Implementation_is_required of  | 
| | 
Interface_not_compiled of  | 
| | 
Not_allowed_in_functor_body | 
| | 
Not_a_packed_module of  | 
| | 
Incomplete_packed_module of  | 
| | 
Scoping_pack of  | 
| | 
Recursive_module_require_explicit_type | 
| | 
Apply_generative | 
| | 
Cannot_scrape_alias of  | 
exception Error of Location.t * Env.t * error
exception Error_forward of Location.error
val report_error : Env.t -> Format.formatter -> error -> unit
module ImplementationHooks:Misc.HookSigwith type t = Typedtree.structure * Typedtree.module_coercion
module InterfaceHooks:Misc.HookSigwith type t = Typedtree.signature