1995-08-09 08:06:35 -07:00
|
|
|
(***********************************************************************)
|
|
|
|
(* *)
|
|
|
|
(* Caml Special Light *)
|
|
|
|
(* *)
|
|
|
|
(* Xavier Leroy, projet Cristal, INRIA Rocquencourt *)
|
|
|
|
(* *)
|
|
|
|
(* Copyright 1995 Institut National de Recherche en Informatique et *)
|
|
|
|
(* Automatique. Distributed only by permission. *)
|
|
|
|
(* *)
|
|
|
|
(***********************************************************************)
|
|
|
|
|
|
|
|
(* $Id$ *)
|
|
|
|
|
1995-05-04 03:15:53 -07:00
|
|
|
(* Inclusion checks for the module language *)
|
|
|
|
|
|
|
|
open Typedtree
|
|
|
|
|
|
|
|
val modtypes: Env.t -> module_type -> module_type -> module_coercion
|
|
|
|
val signatures: Env.t -> signature -> signature -> module_coercion
|
1995-09-02 11:55:37 -07:00
|
|
|
val compunit: string -> signature -> string -> signature -> module_coercion
|
1995-05-04 03:15:53 -07:00
|
|
|
|
|
|
|
type error =
|
|
|
|
Missing_field of Ident.t
|
|
|
|
| Value_descriptions of Ident.t * value_description * value_description
|
|
|
|
| Type_declarations of Ident.t * type_declaration * type_declaration
|
|
|
|
| Exception_declarations of
|
|
|
|
Ident.t * exception_declaration * exception_declaration
|
|
|
|
| Module_types of module_type * module_type
|
|
|
|
| Modtype_infos of Ident.t * modtype_declaration * modtype_declaration
|
1996-02-22 02:23:33 -08:00
|
|
|
| Modtype_permutation
|
1995-09-02 11:55:37 -07:00
|
|
|
| Interface_mismatch of string * string
|
1995-05-04 03:15:53 -07:00
|
|
|
|
|
|
|
exception Error of error list
|
|
|
|
|
|
|
|
val report_error: error list -> unit
|