package ppx_repr

  1. Overview
  2. Docs
PPX deriver for type representations

Install

Dune Dependency

Authors

Maintainers

Sources

repr-fuzz-0.6.0.tbz
sha256=bb8a0f94df002fc19dcb598834271eaddeffa1d57041491ff3d2b9e3e80d075e
sha512=2218845ba1b42e3983bc9727879c704433571655c85251c43edb9bf85ceec35c3b662091e32a744a5340a9c641b1cb5fa591389a68832faf0bb71981d6d91e1d

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.

OCaml

Innovation. Community. Security.