mltypes.mli 607 Bytes
Newer Older
1
2
3
4
open OCaml_all
open Asttypes
open Types

5
6
exception Error of string

7
8
9
10
11
12
13
14
15
16
17
18
type t = { uid : int; mutable recurs : int; mutable def : def }
and def =
  | Link of t
  | Arrow of t * t
  | Tuple of t list
  | PVariant of (string * t option) list  (* Polymorphic variant *)
  | Variant of (string * t list) list * bool
  | Record of (string * t) list * bool
  | Builtin of string * t list
  | Abstract of string


19
val read_cmi: string -> string * (string * Types.type_expr * t) list
20
21

val print : Format.formatter -> t -> unit
22
val print_ocaml : Format.formatter -> Types.type_expr -> unit
23
24
25


val find_value: string -> t