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 core language *)
|
|
|
|
|
1996-09-23 04:33:27 -07:00
|
|
|
open Types
|
1995-05-04 03:15:53 -07:00
|
|
|
open Typedtree
|
|
|
|
|
1995-10-23 09:59:41 -07:00
|
|
|
exception Dont_match
|
|
|
|
|
2010-05-20 20:36:52 -07:00
|
|
|
type type_mismatch =
|
|
|
|
Arity
|
|
|
|
| Privacy
|
|
|
|
| Kind
|
|
|
|
| Constraint
|
|
|
|
| Manifest
|
|
|
|
| Variance
|
|
|
|
| Field_type of string
|
|
|
|
| Field_mutable of string
|
|
|
|
| Field_arity of string
|
2010-05-21 05:42:34 -07:00
|
|
|
| Field_names of int * string * string
|
2010-05-20 20:36:52 -07:00
|
|
|
| Field_missing of bool * string
|
2010-05-21 08:13:47 -07:00
|
|
|
| Record_representation of bool
|
2010-05-20 20:36:52 -07:00
|
|
|
|
1995-05-04 03:15:53 -07:00
|
|
|
val value_descriptions:
|
2010-05-20 20:36:52 -07:00
|
|
|
Env.t -> value_description -> value_description -> module_coercion
|
1995-05-04 03:15:53 -07:00
|
|
|
val type_declarations:
|
2010-05-20 20:36:52 -07:00
|
|
|
Env.t -> Ident.t ->
|
|
|
|
type_declaration -> type_declaration -> type_mismatch list
|
1995-05-04 03:15:53 -07:00
|
|
|
val exception_declarations:
|
2010-05-20 20:36:52 -07:00
|
|
|
Env.t -> exception_declaration -> exception_declaration -> bool
|
1998-06-24 12:22:26 -07:00
|
|
|
(*
|
1997-03-09 16:23:13 -08:00
|
|
|
val class_types:
|
1997-05-19 08:42:21 -07:00
|
|
|
Env.t -> class_type -> class_type -> bool
|
1998-06-24 12:22:26 -07:00
|
|
|
*)
|
2010-05-20 20:36:52 -07:00
|
|
|
|
2010-05-21 08:13:47 -07:00
|
|
|
val report_type_mismatch:
|
|
|
|
string -> string -> string -> Format.formatter -> type_mismatch list -> unit
|