1 (***********************************************************************)
5 (* Xavier Leroy, projet Cristal, INRIA Rocquencourt *)
7 (* Copyright 1996 Institut National de Recherche en Informatique et *)
8 (* en Automatique. All rights reserved. This file is distributed *)
9 (* under the terms of the Q Public License version 1.0. *)
11 (***********************************************************************)
13 (* $Id: includemod.mli 7619 2006-09-20 11:14:37Z doligez $ *)
15 (* Inclusion checks for the module language *)
21 val modtypes: Env.t -> module_type -> module_type -> module_coercion
22 val signatures: Env.t -> signature -> signature -> module_coercion
23 val compunit: string -> signature -> string -> signature -> module_coercion
24 val type_declarations:
25 Env.t -> Ident.t -> type_declaration -> type_declaration -> unit
28 Missing_field of Ident.t
29 | Value_descriptions of Ident.t * value_description * value_description
30 | Type_declarations of Ident.t * type_declaration * type_declaration
31 | Exception_declarations of
32 Ident.t * exception_declaration * exception_declaration
33 | Module_types of module_type * module_type
34 | Modtype_infos of Ident.t * modtype_declaration * modtype_declaration
36 | Interface_mismatch of string * string
37 | Class_type_declarations of
38 Ident.t * cltype_declaration * cltype_declaration *
39 Ctype.class_match_failure list
40 | Class_declarations of
41 Ident.t * class_declaration * class_declaration *
42 Ctype.class_match_failure list
43 | Unbound_modtype_path of Path.t
45 exception Error of error list
47 val report_error: formatter -> error list -> unit