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_parsing/Ocaml_parsing/Ast_helper/Typ/index.html

Module Ast_helper.TypSource

Type expressions

Sourceval any : ?loc:loc -> ?attrs:attrs -> unit -> Parsetree.core_type
Sourceval var : ?loc:loc -> ?attrs:attrs -> string -> Parsetree.core_type
Sourceval tuple : ?loc:loc -> ?attrs:attrs -> Parsetree.core_type list -> Parsetree.core_type
Sourceval constr : ?loc:loc -> ?attrs:attrs -> lid -> Parsetree.core_type list -> Parsetree.core_type
Sourceval class_ : ?loc:loc -> ?attrs:attrs -> lid -> Parsetree.core_type list -> Parsetree.core_type
Sourceval alias : ?loc:loc -> ?attrs:attrs -> Parsetree.core_type -> string with_loc -> Parsetree.core_type
Sourceval variant : ?loc:loc -> ?attrs:attrs -> Parsetree.row_field list -> Asttypes.closed_flag -> Asttypes.label list option -> Parsetree.core_type
Sourceval poly : ?loc:loc -> ?attrs:attrs -> str list -> Parsetree.core_type -> Parsetree.core_type
Sourceval package : ?loc:loc -> ?attrs:attrs -> lid -> (lid * Parsetree.core_type) list -> Parsetree.core_type
Sourceval open_ : ?loc:loc -> ?attrs:attrs -> lid -> Parsetree.core_type -> Parsetree.core_type
Sourceval extension : ?loc:loc -> ?attrs:attrs -> Parsetree.extension -> Parsetree.core_type
Sourceval varify_constructors : str list -> Parsetree.core_type -> Parsetree.core_type

varify_constructors newtypes te is type expression te, of which any of nullary type constructor tc is replaced by type variable of the same name, if tc's name appears in newtypes. Raise Syntaxerr.Variable_in_scope if any type variable inside te appears in newtypes.

  • since 4.05
OCaml

Innovation. Community. Security.