package merlin-lib

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Type-checking of the module language and typed ast hooks

Warning: this module is unstable and part of compiler-libs.

module Signature_names : sig ... end
val type_implementation : string -> string -> string -> Env.t -> Ocaml_parsing.Parsetree.structure -> Typedtree.implementation
val check_nongen_signature : Env.t -> Types.signature -> unit
val path_of_module : Typedtree.module_expr -> Path.t option
val save_signature : string -> Typedtree.signature -> string -> string -> Env.t -> Cmi_format.cmi_infos -> unit
val package_units : Env.t -> string list -> string -> string -> Typedtree.module_coercion
val initial_env : loc:Ocaml_parsing.Location.t -> safe_string:bool -> initially_opened_module:string option -> open_implicit_modules:string list -> Env.t
module Sig_component_kind : sig ... end
type hiding_error =
  1. | Illegal_shadowing of {
    1. shadowed_item_id : Ident.t;
    2. shadowed_item_kind : Sig_component_kind.t;
    3. shadowed_item_loc : Ocaml_parsing.Location.t;
    4. shadower_id : Ident.t;
    5. user_id : Ident.t;
    6. user_kind : Sig_component_kind.t;
    7. user_loc : Ocaml_parsing.Location.t;
    }
  2. | Appears_in_signature of {
    1. opened_item_id : Ident.t;
    2. opened_item_kind : Sig_component_kind.t;
    3. user_id : Ident.t;
    4. user_kind : Sig_component_kind.t;
    5. user_loc : Ocaml_parsing.Location.t;
    }
type error =
  1. | Cannot_apply of Types.module_type
  2. | Not_included of Includemod.explanation
  3. | Cannot_eliminate_dependency of Types.module_type
  4. | Signature_expected
  5. | Structure_expected of Types.module_type
  6. | With_no_component of Ocaml_parsing.Longident.t
  7. | With_mismatch of Ocaml_parsing.Longident.t * Includemod.explanation
  8. | With_makes_applicative_functor_ill_typed of Ocaml_parsing.Longident.t * Path.t * Includemod.explanation
  9. | With_changes_module_alias of Ocaml_parsing.Longident.t * Ident.t * Path.t
  10. | With_cannot_remove_constrained_type
  11. | Repeated_name of Sig_component_kind.t * string
  12. | Non_generalizable of Types.type_expr
  13. | Non_generalizable_module of Types.module_type
  14. | Implementation_is_required of string
  15. | Interface_not_compiled of string
  16. | Not_allowed_in_functor_body
  17. | Not_a_packed_module of Types.type_expr
  18. | Incomplete_packed_module of Types.type_expr
  19. | Scoping_pack of Ocaml_parsing.Longident.t * Types.type_expr
  20. | Recursive_module_require_explicit_type
  21. | Apply_generative
  22. | Cannot_scrape_alias of Path.t
  23. | Cannot_scrape_package_type of Path.t
  24. | Badly_formed_signature of string * Typedecl.error
  25. | Cannot_hide_id of hiding_error
  26. | Invalid_type_subst_rhs
  27. | Unpackable_local_modtype_subst of Path.t
  28. | With_cannot_remove_packed_modtype of Path.t * Types.module_type
exception Error of Ocaml_parsing.Location.t * Env.t * error
exception Error_forward of Ocaml_parsing.Location.error
val normalize_signature : Types.signature -> unit
val merlin_transl_signature : Env.t -> Ocaml_parsing.Parsetree.signature -> Typedtree.signature
OCaml

Innovation. Community. Security.