package earley

  1. Overview
  2. Docs

Type expressions

val any : ?loc:Astextra.loc -> ?attrs:Astextra.attrs -> unit -> Parsetree.core_type
val var : ?loc:Astextra.loc -> ?attrs:Astextra.attrs -> string -> Parsetree.core_type
val alias : ?loc:Astextra.loc -> ?attrs:Astextra.attrs -> Parsetree.core_type -> string -> Parsetree.core_type
val varify_constructors : Astextra.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.