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
|
|
|
(* Type-checking of the module language *)
|
|
|
|
|
1996-09-23 04:33:27 -07:00
|
|
|
open Types
|
2000-03-06 14:12:09 -08:00
|
|
|
open Format
|
1995-05-04 03:15:53 -07:00
|
|
|
|
1998-02-26 04:54:44 -08:00
|
|
|
val type_module:
|
|
|
|
Env.t -> Parsetree.module_expr -> Typedtree.module_expr
|
1995-05-04 03:15:53 -07:00
|
|
|
val type_structure:
|
2007-05-16 01:21:41 -07:00
|
|
|
Env.t -> Parsetree.structure -> Location.t ->
|
|
|
|
Typedtree.structure * signature * Env.t
|
1998-04-27 08:16:48 -07:00
|
|
|
val type_implementation:
|
|
|
|
string -> string -> string -> Env.t -> Parsetree.structure ->
|
|
|
|
Typedtree.structure * Typedtree.module_coercion
|
1995-05-04 03:15:53 -07:00
|
|
|
val transl_signature:
|
|
|
|
Env.t -> Parsetree.signature -> signature
|
1995-09-02 11:55:37 -07:00
|
|
|
val check_nongen_schemes:
|
1996-09-23 04:33:27 -07:00
|
|
|
Env.t -> Typedtree.structure -> unit
|
1995-05-04 03:15:53 -07:00
|
|
|
|
2005-08-08 02:41:52 -07:00
|
|
|
val simplify_signature: signature -> signature
|
|
|
|
|
2002-02-08 08:55:44 -08:00
|
|
|
val package_units:
|
2003-03-06 07:59:55 -08:00
|
|
|
string list -> string -> string -> Typedtree.module_coercion
|
2002-02-08 08:55:44 -08:00
|
|
|
|
1995-05-04 03:15:53 -07:00
|
|
|
type error =
|
2010-05-18 10:18:24 -07:00
|
|
|
Cannot_apply of module_type
|
1995-05-04 03:15:53 -07:00
|
|
|
| Not_included of Includemod.error list
|
|
|
|
| Cannot_eliminate_dependency of module_type
|
|
|
|
| Signature_expected
|
|
|
|
| Structure_expected of module_type
|
1995-10-01 06:39:43 -07:00
|
|
|
| With_no_component of Longident.t
|
1996-07-25 06:18:53 -07:00
|
|
|
| With_mismatch of Longident.t * Includemod.error list
|
1995-08-28 04:23:33 -07:00
|
|
|
| Repeated_name of string * string
|
1995-09-02 11:55:37 -07:00
|
|
|
| Non_generalizable of type_expr
|
1998-06-24 12:22:26 -07:00
|
|
|
| Non_generalizable_class of Ident.t * class_declaration
|
1996-05-22 09:22:33 -07:00
|
|
|
| Non_generalizable_module of module_type
|
2004-04-09 06:32:28 -07:00
|
|
|
| Implementation_is_required of string
|
2004-06-13 05:48:01 -07:00
|
|
|
| Interface_not_compiled of string
|
2009-10-26 03:53:16 -07:00
|
|
|
| Not_allowed_in_functor_body
|
2010-04-17 07:45:12 -07:00
|
|
|
| With_need_typeconstr
|
1995-05-04 03:15:53 -07:00
|
|
|
|
|
|
|
exception Error of Location.t * error
|
|
|
|
|
2000-03-06 14:12:09 -08:00
|
|
|
val report_error: formatter -> error -> unit
|