package merlin-lib

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val valid_tyvar_name : string -> bool
type poly_univars
val make_poly_univars : string list -> poly_univars
val check_poly_univars : Env.t -> Ocaml_parsing.Location.t -> poly_univars -> Types.type_expr list
val instance_poly_univars : Env.t -> Ocaml_parsing.Location.t -> poly_univars -> Types.type_expr list
val transl_simple_type : Env.t -> ?univars:poly_univars -> bool -> Ocaml_parsing.Parsetree.core_type -> Typedtree.core_type
val transl_simple_type_univars : Env.t -> Ocaml_parsing.Parsetree.core_type -> Typedtree.core_type
val transl_simple_type_delayed : Env.t -> Ocaml_parsing.Parsetree.core_type -> Typedtree.core_type * Types.type_expr * (unit -> unit)
val reset_type_variables : unit -> unit
val type_variable : Ocaml_parsing.Location.t -> string -> Types.type_expr
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. | Undefined_type_constructor of Path.t
  3. | Type_arity_mismatch of Ocaml_parsing.Longident.t * int * int
  4. | Bound_type_variable of string
  5. | Recursive_type
  6. | Unbound_row_variable of Ocaml_parsing.Longident.t
  7. | Type_mismatch of Errortrace.unification_error
  8. | Alias_type_mismatch of Errortrace.unification_error
  9. | Present_has_conjunction of string
  10. | Present_has_no_type of string
  11. | Constructor_mismatch of Types.type_expr * Types.type_expr
  12. | Not_a_variant of Types.type_expr
  13. | Variant_tags of string * string
  14. | Invalid_variable_name of string
  15. | Cannot_quantify of string * Types.type_expr
  16. | Multiple_constraints_on_type of Ocaml_parsing.Longident.t
  17. | Method_mismatch of string * Types.type_expr * Types.type_expr
  18. | Opened_object of Path.t option
  19. | Not_an_object of Types.type_expr
exception Error of Ocaml_parsing.Location.t * Env.t * error
val report_error : Env.t -> Stdlib.Format.formatter -> error -> unit
val transl_modtype_longident : (Ocaml_parsing.Location.t -> Env.t -> Ocaml_parsing.Longident.t -> Path.t) Stdlib.ref
val transl_modtype : (Env.t -> Ocaml_parsing.Parsetree.module_type -> Typedtree.module_type) Stdlib.ref
OCaml

Innovation. Community. Security.