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
|
|
|
(* 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 ->
|
2012-05-30 07:52:37 -07:00
|
|
|
Typedtree.structure * Types.signature * Env.t
|
2012-06-01 07:05:49 -07:00
|
|
|
val type_toplevel_phrase:
|
|
|
|
Env.t -> Parsetree.structure ->
|
|
|
|
Typedtree.structure * Types.signature * Env.t
|
1998-04-27 08:16:48 -07:00
|
|
|
val type_implementation:
|
2012-05-30 07:52:37 -07:00
|
|
|
string -> string -> string -> Env.t -> Parsetree.structure ->
|
|
|
|
Typedtree.structure * Typedtree.module_coercion
|
1995-05-04 03:15:53 -07:00
|
|
|
val transl_signature:
|
2012-05-30 07:52:37 -07:00
|
|
|
Env.t -> Parsetree.signature -> Typedtree.signature
|
1995-09-02 11:55:37 -07:00
|
|
|
val check_nongen_schemes:
|
2012-05-30 07:52:37 -07:00
|
|
|
Env.t -> Typedtree.structure_item list -> unit
|
1995-05-04 03:15:53 -07:00
|
|
|
|
2005-08-08 02:41:52 -07:00
|
|
|
val simplify_signature: signature -> signature
|
|
|
|
|
2012-05-30 07:52:37 -07:00
|
|
|
val save_signature : string -> Typedtree.signature -> string -> string ->
|
|
|
|
Env.t -> Types.signature_item list -> unit
|
|
|
|
|
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
|
|
|
|
2012-05-30 07:52:37 -07:00
|
|
|
val bound_value_identifiers : Types.signature_item list -> Ident.t list
|
|
|
|
|
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
|
2010-10-21 16:59:33 -07:00
|
|
|
| Not_a_packed_module of type_expr
|
|
|
|
| Incomplete_packed_module of type_expr
|
2011-12-14 02:26:15 -08:00
|
|
|
| Scoping_pack of Longident.t * type_expr
|
2013-02-28 08:51:59 -08:00
|
|
|
| Extension of string
|
2013-03-05 08:50:05 -08:00
|
|
|
| Recursive_module_require_explicit_type
|
1995-05-04 03:15:53 -07:00
|
|
|
|
2012-01-22 23:59:45 -08:00
|
|
|
exception Error of Location.t * Env.t * error
|
1995-05-04 03:15:53 -07:00
|
|
|
|
2012-01-22 23:59:45 -08:00
|
|
|
val report_error: Env.t -> formatter -> error -> unit
|