package merlin-lib

  1. Overview
  2. Docs
Merlin's libraries

Install

Dune Dependency

Authors

Maintainers

Sources

merlin-4.18-414.tbz
sha256=f6d6f7a266141e358c1a869612c8135c859185d547ea3ba5c9ad7bb67fe30cc1
sha512=4f272bdb028fd984fef406f7e1eadd0a3ab99d94016316f1b842782b1d1bba2bd50dcf3b4021c2096c6d9b5e5f9f6bae61bedcfd9f933f15c190e01777ef83a9

doc/merlin-lib.ocaml_typing/Ocaml_typing/Msupport/index.html

Module Ocaml_typing.MsupportSource

Sourceval raise_error : ?ignore_unify:bool -> exn -> unit

Raise an error that can be caught: normal flow is resumed if a catch_errors handler was installed.

Sourceexception Resume

Resume after error: like raise_error, but if a handler was provided a Resume exception is raised. This allows to specify a special case when an error is caught.

Sourceval resume_raise : exn -> 'a

Installing (and removing) error handlers.

Sourceval catch_errors : Ocaml_utils.Warnings.state -> exn list ref -> (unit -> 'a) -> 'a

Any raise_error invoked inside catch_errors will be added to the list.

Sourceval uncatch_errors : (unit -> 'a) -> 'a

Temporary disable catching errors

Sourceval monitor_errors : unit -> bool ref

Returns a reference initially set to false that will be set to true when a type error is raised.

Sourceexception Warning of Ocaml_parsing.Location.t * string

Warnings can also be stored in the caught exception list, wrapped inside this exception

Sourceval erroneous_type_register : Types.type_expr -> unit
Sourceval erroneous_type_check : Types.type_expr -> bool
Sourceval erroneous_expr_check : Typedtree.expression -> bool
Sourceval flush_saved_types : unit -> Ocaml_parsing.Parsetree.attributes

Turn saved types from Cmt_format into attributes

Sourceval incorrect_attribute : Ocaml_parsing.Parsetree.attribute

Extend the given attributes with an incorrect attribute and the saved types after turning them into attributes

Sourceval get_saved_types_from_attributes : Ocaml_parsing.Parsetree.attributes -> Cmt_format.binary_part list

Retrieve saved types that were turned into attributes

Sourceval with_saved_types : ?warning_attribute:Ocaml_parsing.Parsetree.attributes -> ?save_part:('a -> Cmt_format.binary_part) -> (unit -> 'a) -> 'a
OCaml

Innovation. Community. Security.