1995-08-09 08:06:35 -07:00
|
|
|
(***********************************************************************)
|
|
|
|
(* *)
|
2011-07-27 07:17:02 -07:00
|
|
|
(* OCaml *)
|
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
|
|
|
(* *)
|
|
|
|
(***********************************************************************)
|
|
|
|
|
1995-05-04 03:15:53 -07:00
|
|
|
(* Inclusion checks for the module language *)
|
|
|
|
|
|
|
|
open Typedtree
|
2012-05-30 07:52:37 -07:00
|
|
|
open Types
|
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
|
2014-04-29 04:56:17 -07:00
|
|
|
val compunit:
|
|
|
|
Env.t -> 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
|
|
|
|
2011-10-19 22:49:38 -07:00
|
|
|
type symptom =
|
2014-01-30 01:55:35 -08:00
|
|
|
Missing_field of Ident.t * Location.t * string (* kind *)
|
1995-05-04 03:15:53 -07:00
|
|
|
| Value_descriptions of Ident.t * value_description * value_description
|
2010-05-20 20:36:52 -07:00
|
|
|
| Type_declarations of Ident.t * type_declaration
|
|
|
|
* type_declaration * Includecore.type_mismatch list
|
2014-05-04 16:08:45 -07:00
|
|
|
| Extension_constructors of
|
|
|
|
Ident.t * extension_constructor * extension_constructor
|
1995-05-04 03:15:53 -07:00
|
|
|
| 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
|
2012-05-30 07:52:37 -07:00
|
|
|
Ident.t * class_type_declaration * class_type_declaration *
|
1998-06-24 12:22:26 -07:00
|
|
|
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
|
2013-09-29 00:22:34 -07:00
|
|
|
| Unbound_module_path of Path.t
|
2014-04-21 03:38:04 -07:00
|
|
|
| Invalid_module_alias of Path.t
|
1995-05-04 03:15:53 -07:00
|
|
|
|
2011-10-19 22:49:38 -07:00
|
|
|
type pos =
|
|
|
|
Module of Ident.t | Modtype of Ident.t | Arg of Ident.t | Body of Ident.t
|
2012-01-22 23:59:45 -08:00
|
|
|
type error = pos list * Env.t * symptom
|
2011-10-19 22:49:38 -07:00
|
|
|
|
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
|
2013-10-02 06:23:48 -07:00
|
|
|
val expand_module_alias: Env.t -> pos list -> Path.t -> Types.module_type
|