sig
type eqs = (T.Type.t * T.Type.t) list
type subst
val print_eqs : Pervasives.out_channel -> Eq.eqs -> unit
val print_subst : Pervasives.out_channel -> Eq.subst -> unit
val fresh_var : unit -> int
val subst : Eq.subst -> int -> T.Type.t
val subst_type : Eq.subst -> T.Type.t -> T.Type.t
val mgu : Eq.eqs -> Eq.subst
val mgu_incr : T.Type.t -> T.Type.t -> Eq.subst -> Eq.subst
type scheme = int list * T.Type.t
val print_scheme : Pervasives.out_channel -> Eq.scheme -> unit
module Vars :
sig
type elt = int
type t
val empty : t
val is_empty : t -> bool
val mem : elt -> t -> bool
val add : elt -> t -> t
val singleton : elt -> t
val remove : elt -> t -> t
val union : t -> t -> t
val inter : t -> t -> t
val diff : t -> t -> t
val compare : t -> t -> int
val equal : t -> t -> bool
val subset : t -> t -> bool
val iter : (elt -> unit) -> t -> unit
val fold : (elt -> 'a -> 'a) -> t -> 'a -> 'a
val for_all : (elt -> bool) -> t -> bool
val exists : (elt -> bool) -> t -> bool
val filter : (elt -> bool) -> t -> t
val partition : (elt -> bool) -> t -> t * t
val cardinal : t -> int
val elements : t -> elt list
val min_elt : t -> elt
val max_elt : t -> elt
val choose : t -> elt
val split : elt -> t -> t * bool * t
val of_list : elt list -> t
val disjoint : t -> t -> bool
end
val dom : Eq.subst -> Eq.Vars.t
val id : Eq.subst
val delta : int -> T.Type.t -> Eq.subst
val comp : Eq.subst -> Eq.subst -> Eq.subst
end