package ppxlib

  1. Overview
  2. Docs
Standard library for ppx rewriters

Install

Dune Dependency

Authors

Maintainers

Sources

ppxlib-0.16.0.tbz
sha256=a2b7b86206b80f17df2cd30fcaf034023b00afbff6704cf6290374db7c6c5ed5
sha512=67db32012e06591b6fd45b211e1620db3815e6b586214a42cced0fd2e55339360a6f1fa05f4ce5688b994d6179e7d7adbdb08b01085d7c737f0af1d1fa3f7cc9

doc/ppxlib.ast/Ppxlib_ast/Ast_helper/Typ/index.html

Module Ast_helper.Typ

Type expressions

Type expressions

val any : ?loc:Ocaml_common.Location.t -> ?attrs:Migrate_parsetree.Ast_410.Parsetree.attribute list -> unit -> Migrate_parsetree.Ast_410.Parsetree.core_type
val var : ?loc:Ocaml_common.Location.t -> ?attrs:Migrate_parsetree.Ast_410.Parsetree.attribute list -> string -> Migrate_parsetree.Ast_410.Parsetree.core_type
val constr : ?loc:Ocaml_common.Location.t -> ?attrs:Migrate_parsetree.Ast_410.Parsetree.attribute list -> Ocaml_common.Longident.t Ocaml_common.Location.loc -> Migrate_parsetree.Ast_410.Parsetree.core_type list -> Migrate_parsetree.Ast_410.Parsetree.core_type
val class_ : ?loc:Ocaml_common.Location.t -> ?attrs:Migrate_parsetree.Ast_410.Parsetree.attribute list -> Ocaml_common.Longident.t Ocaml_common.Location.loc -> Migrate_parsetree.Ast_410.Parsetree.core_type list -> Migrate_parsetree.Ast_410.Parsetree.core_type
val poly : ?loc:Ocaml_common.Location.t -> ?attrs:Migrate_parsetree.Ast_410.Parsetree.attribute list -> string Ocaml_common.Location.loc list -> Migrate_parsetree.Ast_410.Parsetree.core_type -> Migrate_parsetree.Ast_410.Parsetree.core_type
val package : ?loc:Ocaml_common.Location.t -> ?attrs:Migrate_parsetree.Ast_410.Parsetree.attribute list -> Ocaml_common.Longident.t Ocaml_common.Location.loc -> (Ocaml_common.Longident.t Ocaml_common.Location.loc * Migrate_parsetree.Ast_410.Parsetree.core_type) list -> Migrate_parsetree.Ast_410.Parsetree.core_type
val varify_constructors : string Ocaml_common.Location.loc list -> Migrate_parsetree.Ast_410.Parsetree.core_type -> Migrate_parsetree.Ast_410.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.