package ocaml-base-compiler

  1. Overview
  2. Docs
val valid_tyvar_name : string -> bool
val transl_simple_type : Env.t -> bool -> Parsetree.core_type -> Typedtree.core_type
val transl_simple_type_univars : Env.t -> Parsetree.core_type -> Typedtree.core_type
val transl_simple_type_delayed : Env.t -> Parsetree.core_type -> Typedtree.core_type * (unit -> unit)
val transl_type_scheme : Env.t -> Parsetree.core_type -> Typedtree.core_type
val reset_type_variables : unit -> unit
val type_variable : Location.t -> string -> Types.type_expr
val transl_type_param : Env.t -> Parsetree.core_type -> Typedtree.core_type
type variable_context
val narrow : unit -> variable_context
val widen : variable_context -> unit
exception Already_bound
type error =
  1. | Unbound_type_variable of string
  2. | Unbound_type_constructor of Longident.t
  3. | Unbound_type_constructor_2 of Path.t
  4. | Type_arity_mismatch of Longident.t * int * int
  5. | Bound_type_variable of string
  6. | Recursive_type
  7. | Unbound_row_variable of Longident.t
  8. | Type_mismatch of Ctype.Unification_trace.t
  9. | Alias_type_mismatch of Ctype.Unification_trace.t
  10. | Present_has_conjunction of string
  11. | Present_has_no_type of string
  12. | Constructor_mismatch of Types.type_expr * Types.type_expr
  13. | Not_a_variant of Types.type_expr
  14. | Variant_tags of string * string
  15. | Invalid_variable_name of string
  16. | Cannot_quantify of string * Types.type_expr
  17. | Multiple_constraints_on_type of Longident.t
  18. | Method_mismatch of string * Types.type_expr * Types.type_expr
  19. | Unbound_value of Longident.t
  20. | Unbound_constructor of Longident.t
  21. | Unbound_label of Longident.t
  22. | Unbound_module of Longident.t
  23. | Unbound_class of Longident.t
  24. | Unbound_modtype of Longident.t
  25. | Unbound_cltype of Longident.t
  26. | Ill_typed_functor_application of Longident.t * Longident.t * Includemod.error list option
  27. | Illegal_reference_to_recursive_module
  28. | Wrong_use_of_module of Longident.t * [ `Structure_used_as_functor | `Abstract_used_as_functor | `Functor_used_as_structure | `Abstract_used_as_structure | `Generative_used_as_applicative ]
  29. | Cannot_scrape_alias of Longident.t * Path.t
  30. | Opened_object of Path.t option
  31. | Not_an_object of Types.type_expr
  32. | Unbound_value_missing_rec of Longident.t * Location.t
exception Error of Location.t * Env.t * error
val report_error : Env.t -> Format.formatter -> error -> unit
val transl_modtype_longident : (Location.t -> Env.t -> Longident.t -> Path.t) ref
val find_all_constructors : Env.t -> Location.t -> Longident.t -> (Types.constructor_description * (unit -> unit)) list
val find_all_labels : Env.t -> Location.t -> Longident.t -> (Types.label_description * (unit -> unit)) list
val lookup_module : ?load:bool -> Env.t -> Location.t -> Longident.t -> Path.t
val unbound_constructor_error : Env.t -> Longident.t Location.loc -> 'a
val unbound_label_error : Env.t -> Longident.t Location.loc -> 'a
val typemod_update_location : (Location.t -> exn -> exn) ref
OCaml

Innovation. Community. Security.