package ppxlib

  1. Overview
  2. Docs
Standard library for ppx rewriters

Install

Dune Dependency

Authors

Maintainers

Sources

ppxlib-0.21.1.tbz
sha256=41182e15ddb9dc6fcfecb45736fe1ecf588e430f15ba349d09dba8a67e4e748a
sha512=dae7494a26a76f6f541046ef382979f5b48688e158bbf2fc5119e54b0bcfb903a20643bee3e9363a64f0332d92fee65b248c287ac8193cca2bfac2cfb66a4a0a

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