1995-08-09 08:06:35 -07:00
|
|
|
(***********************************************************************)
|
|
|
|
(* *)
|
1996-04-30 07:53:58 -07:00
|
|
|
(* Objective Caml *)
|
1995-08-09 08:06:35 -07:00
|
|
|
(* *)
|
|
|
|
(* Xavier Leroy, projet Cristal, INRIA Rocquencourt *)
|
|
|
|
(* *)
|
1996-04-30 07:53:58 -07:00
|
|
|
(* Copyright 1996 Institut National de Recherche en Informatique et *)
|
1999-11-17 10:59:06 -08:00
|
|
|
(* en Automatique. All rights reserved. This file is distributed *)
|
|
|
|
(* under the terms of the Q Public License version 1.0. *)
|
1995-08-09 08:06:35 -07:00
|
|
|
(* *)
|
|
|
|
(***********************************************************************)
|
|
|
|
|
|
|
|
(* $Id$ *)
|
|
|
|
|
1995-05-04 03:15:53 -07:00
|
|
|
(* Inclusion checks for the module language *)
|
|
|
|
|
1996-09-23 04:33:27 -07:00
|
|
|
open Types
|
1995-05-04 03:15:53 -07:00
|
|
|
open Typedtree
|
2000-03-06 14:12:09 -08:00
|
|
|
open Format
|
1995-05-04 03:15:53 -07:00
|
|
|
|
|
|
|
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
|
1996-07-25 06:18:53 -07:00
|
|
|
val type_declarations:
|
|
|
|
Env.t -> Ident.t -> type_declaration -> type_declaration -> unit
|
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
|
1998-06-24 12:22:26 -07:00
|
|
|
| Class_type_declarations of
|
|
|
|
Ident.t * cltype_declaration * cltype_declaration *
|
|
|
|
Ctype.class_match_failure list
|
|
|
|
| Class_declarations of
|
|
|
|
Ident.t * class_declaration * class_declaration *
|
|
|
|
Ctype.class_match_failure list
|
2006-09-20 04:14:37 -07:00
|
|
|
| Unbound_modtype_path of Path.t
|
1995-05-04 03:15:53 -07:00
|
|
|
|
|
|
|
exception Error of error list
|
|
|
|
|
2000-03-06 14:12:09 -08:00
|
|
|
val report_error: formatter -> error list -> unit
|