package ppx_repr

  1. Overview
  2. Docs
PPX deriver for type representations

Install

Dune Dependency

Authors

Maintainers

Sources

repr-0.7.0.tbz
sha256=8adac9fe85bf8a0e20eeb6810d7216e98e1b7f4d9bd399e61bb1024ace2501ac
sha512=5b104c52a05a3ed7a4505dea3b3b7ee16bba020b5d2d8e4dfd680ff8f82ae021caf0f29207616ac2ae40dfd5bb641a144e31b11d29c5ba4918ba616a57f74647

doc/ppx_repr.lib/Ppx_repr_lib/Meta_deriving/index.html

Module Ppx_repr_lib.Meta_deriving

A meta-deriver is a deriver defined in terms of specialisations of Repr's generic operations (i.e. with plugins that consume type representations rather than type ASTs).

module Plugin : sig ... end

A Plugin.t is a pair of functions that extend a representable type with specialised generic operations: one to supply the implementation of the specialistion, and one to supply its type.

module Args : sig ... end
val make_generator : ?attributes:Ppxlib.Attribute.packed list -> ?deps:Ppxlib.Deriving.t list -> args:('a, 'b) Args.t -> supported_plugins:Plugin.t list -> (loc:Ppxlib.location -> path:string -> Plugin.t list -> 'c -> 'a) -> ('b, 'c) Ppxlib.Deriving.Generator.t

An extension of Ppxlib.Deriving.make_generator that supports a set of meta-deriving plugins.

OCaml

Innovation. Community. Security.