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 *)
|
1995-08-09 08:06:35 -07:00
|
|
|
(* Automatique. Distributed only by permission. *)
|
|
|
|
(* *)
|
|
|
|
(***********************************************************************)
|
|
|
|
|
|
|
|
(* $Id$ *)
|
|
|
|
|
1995-05-04 03:15:53 -07:00
|
|
|
(* Operations on module types *)
|
|
|
|
|
1996-09-23 04:33:27 -07:00
|
|
|
open Types
|
1995-05-04 03:15:53 -07:00
|
|
|
|
|
|
|
val scrape: Env.t -> module_type -> module_type
|
|
|
|
(* Expand toplevel module type abbreviations
|
|
|
|
till hitting a "hard" module type (signature, functor,
|
|
|
|
or abstract module type ident. *)
|
|
|
|
val strengthen: Env.t -> module_type -> Path.t -> module_type
|
|
|
|
(* Strengthen abstract type components relative to the
|
|
|
|
given path. *)
|
|
|
|
val nondep_supertype: Env.t -> Ident.t -> module_type -> module_type
|
|
|
|
(* Return the smallest supertype of the given type
|
|
|
|
in which the given ident does not appear.
|
1999-03-01 13:00:56 -08:00
|
|
|
Raise [Not_found] if no such type exists. *)
|