open Ident exception NonExhaustive of Types.descr exception Constraint of Types.descr * Types.descr * string exception ShouldHave of Types.descr * string exception WrongLabel of Types.descr * label exception UnboundId of string exception ShouldHave2 of Types.descr * string * Types.descr module Env : Map.S with type key = id type env = Types.descr Env.t val register_global_types : (string * Ast.ppat) list -> unit val dump_global_types: Format.formatter -> unit val typ : Ast.ppat -> Typed.ttyp val pat : Ast.ppat -> Typed.tpat val expr: Ast.pexpr -> fv * Typed.texpr val let_decl : Ast.ppat -> Ast.pexpr -> Typed.let_decl val type_check: env -> Typed.texpr -> Types.descr -> bool -> Types.descr (* [compute_type env e t precise] checks that expression [e] has type [t] under typing environment [env]; if [precise=true], also returns a possible more precise type for [e]. *) val type_let_decl: env -> Typed.let_decl -> (id * Types.descr) list val type_rec_funs: env -> Typed.let_decl list -> (id * Types.descr) list (* Assume that all the expressions are Absstractions *) val report_unused_branches : unit -> unit (* Issue warnings for unused branches *)