package ppx_repr

  1. Overview
  2. Docs
PPX deriver for type representations

Install

dune-project
 Dependency

Authors

Maintainers

Sources

repr-0.8.0.tbz
sha256=1728423b8b0208f9b032ad3e05dd96a43b92cd76416f9146e394f0b0ba133347
sha512=3cd97e9a8feb9d03b88bee73fec51765d2573234ee60aeeb3ce5ced552cb0d8bd70cffe52182f517a5785a428baf685be27f7f419cda1b8167aa4037761de4ff

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

Module Ppx_repr_lib.Meta_derivingSource

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).

Sourcemodule 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.

Sourcemodule Args : sig ... end
Sourceval 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.