30 lines
1.4 KiB
OCaml
30 lines
1.4 KiB
OCaml
(***********************************************************************)
|
|
(* *)
|
|
(* Objective Caml *)
|
|
(* *)
|
|
(* Xavier Leroy, projet Cristal, INRIA Rocquencourt *)
|
|
(* *)
|
|
(* Copyright 1996 Institut National de Recherche en Informatique et *)
|
|
(* en Automatique. All rights reserved. This file is distributed *)
|
|
(* under the terms of the Q Public License version 1.0. *)
|
|
(* *)
|
|
(***********************************************************************)
|
|
|
|
(* $Id$ *)
|
|
|
|
(* Operations on module types *)
|
|
|
|
open Types
|
|
|
|
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.
|
|
Raise [Not_found] if no such type exists. *)
|