Type expressions
val mk : ?loc:loc ‑> ?attrs:attrs ‑> Ppx_ast__.Import.Parsetree.core_type_desc ‑> Ppx_ast__.Import.Parsetree.core_type
val attr : Ppx_ast__.Import.Parsetree.core_type ‑> Ppx_ast__.Import.Parsetree.attribute ‑> Ppx_ast__.Import.Parsetree.core_type
val any : ?loc:loc ‑> ?attrs:attrs ‑> unit ‑> Ppx_ast__.Import.Parsetree.core_type
val var : ?loc:loc ‑> ?attrs:attrs ‑> string ‑> Ppx_ast__.Import.Parsetree.core_type
val arrow : ?loc:loc ‑> ?attrs:attrs ‑> Ppx_ast__.Import.Asttypes.arg_label ‑> Ppx_ast__.Import.Parsetree.core_type ‑> Ppx_ast__.Import.Parsetree.core_type ‑> Ppx_ast__.Import.Parsetree.core_type
val tuple : ?loc:loc ‑> ?attrs:attrs ‑> Ppx_ast__.Import.Parsetree.core_type list ‑> Ppx_ast__.Import.Parsetree.core_type
val constr : ?loc:loc ‑> ?attrs:attrs ‑> lid ‑> Ppx_ast__.Import.Parsetree.core_type list ‑> Ppx_ast__.Import.Parsetree.core_type
val object_ : ?loc:loc ‑> ?attrs:attrs ‑> (string * Ppx_ast__.Import.Parsetree.attributes * Ppx_ast__.Import.Parsetree.core_type) list ‑> Ppx_ast__.Import.Asttypes.closed_flag ‑> Ppx_ast__.Import.Parsetree.core_type
val class_ : ?loc:loc ‑> ?attrs:attrs ‑> lid ‑> Ppx_ast__.Import.Parsetree.core_type list ‑> Ppx_ast__.Import.Parsetree.core_type
val alias : ?loc:loc ‑> ?attrs:attrs ‑> Ppx_ast__.Import.Parsetree.core_type ‑> string ‑> Ppx_ast__.Import.Parsetree.core_type
val variant : ?loc:loc ‑> ?attrs:attrs ‑> Ppx_ast__.Import.Parsetree.row_field list ‑> Ppx_ast__.Import.Asttypes.closed_flag ‑> Ppx_ast__.Import.Asttypes.label list option ‑> Ppx_ast__.Import.Parsetree.core_type
val poly : ?loc:loc ‑> ?attrs:attrs ‑> string list ‑> Ppx_ast__.Import.Parsetree.core_type ‑> Ppx_ast__.Import.Parsetree.core_type
val package : ?loc:loc ‑> ?attrs:attrs ‑> lid ‑> (lid * Ppx_ast__.Import.Parsetree.core_type) list ‑> Ppx_ast__.Import.Parsetree.core_type
val extension : ?loc:loc ‑> ?attrs:attrs ‑> Ppx_ast__.Import.Parsetree.extension ‑> Ppx_ast__.Import.Parsetree.core_type
val force_poly : Ppx_ast__.Import.Parsetree.core_type ‑> Ppx_ast__.Import.Parsetree.core_type
val varify_constructors : string list ‑> Ppx_ast__.Import.Parsetree.core_type ‑> Ppx_ast__.Import.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
.