-
Notifications
You must be signed in to change notification settings - Fork 17
/
sub.mli
35 lines (24 loc) · 872 Bytes
/
sub.mli
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
(*
* (c) 2014 Andreas Rossberg
*)
(* Materialization *)
val materialize_typ : Types.typ -> Fomega.exp
(* Lifting *)
val lift : Env.env -> Types.infer ref list -> Types.infer ref list
val lift_warn :
Source.region -> Types.typ -> Env.env -> Types.infer ref list ->
Types.infer ref list
(* Subtyping *)
type error
exception Sub of error
val string_of_error : error -> string
val sub_typ :
Env.env -> Types.typ -> Types.typ -> Types.typ list ->
Types.typ list * Types.infer ref list * Fomega.exp (* raise Sub *)
val sub_extyp :
Env.env -> Types.extyp -> Types.extyp -> Types.typ list ->
Types.typ list * Types.infer ref list * Fomega.exp (* raise Sub *)
val equal_typ :
Env.env -> Types.typ -> Types.typ -> Types.infer ref list (* raise Sub *)
val equal_extyp :
Env.env -> Types.extyp -> Types.extyp -> Types.infer ref list (* raise Sub *)