package merlin-lib

  1. Overview
  2. Docs
Merlin's libraries

Install

Dune Dependency

Authors

Maintainers

Sources

merlin-5.3-502.tbz
sha256=2cea46f12397fa6e31ef0c0d4f5e11c1cfd916ee49420694005c95ebb3aa24bc
sha512=e94abb9ae38149245337db033e2c3891c7ec772168e99abf1bda0216a894c0854e7170b56fe88eba83ec98f2ebc0f5c7c723e8db14f59eeb6dd348bec12c6d62

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

Module Ocaml_typing.PathSource

Sourcetype t =
  1. | Pident of Ident.t
    (*

    Examples: x, List, int

    *)
  2. | Pdot of t * string
    (*

    Examples: List.map, Float.Array

    *)
  3. | Papply of t * t
    (*

    Examples: Set.Make(Int), Map.Make(Set.Make(Int))

    *)
  4. | Pextra_ty of t * extra_ty
    (*

    Pextra_ty (p, extra) are additional paths of types introduced by specific OCaml constructs. See below.

    *)
Sourceand extra_ty =
  1. | Pcstr_ty of string
    (*

    Pextra_ty (p, Pcstr_ty c) is the type of the inline record for constructor c inside type p.

    For example, in

      type 'a t = Nil | Cons of {hd : 'a; tl : 'a t}

    The inline record type {hd : 'a; tl : 'a t} cannot be named by the user in the surface syntax, but internally it has the path Pextra_ty (Pident `t`, Pcstr_ty "Cons").

    *)
  2. | Pext_ty
    (*

    Pextra_ty (p, Pext_ty) is the type of the inline record for the extension constructor p.

    For example, in

      type exn += Error of {loc : loc; msg : string}

    The inline record type {loc : loc; msg : string} cannot be named by the user in the surface syntax, but internally it has the path Pextra_ty (Pident `Error`, Pext_ty).

    *)
Sourceval same : t -> t -> bool
Sourceval compare : t -> t -> int
Sourceval compare_extra : extra_ty -> extra_ty -> int
Sourceval find_free_opt : Ident.t list -> t -> Ident.t option
Sourceval exists_free : Ident.t list -> t -> bool
Sourceval scope : t -> int
Sourceval flatten : t -> [ `Contains_apply | `Ok of Ident.t * string list ]
Sourceval name : ?paren:(string -> bool) -> t -> string
Sourceval head : t -> Ident.t
Sourceval print : Format.formatter -> t -> unit
Sourceval heads : t -> Ident.t list
Sourceval last : t -> string
Sourceval is_constructor_typath : t -> bool
Sourcemodule Map : Map.S with type key = t
Sourcemodule Set : Set.S with type elt = t
OCaml

Innovation. Community. Security.