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/Engine/Located/index.html

Module Engine.LocatedSource

Parameters

module _ : sig ... end

Signature

Sourceval parse_lib : Ppxlib.expression -> string option

parse_lib e is Some "foo" or None if e is a string option, and raises a located exception otherwise. Intended to be used for parsing the lib argument to the derivers.

Sourceval expand_typ : ?lib:string -> Ppxlib.core_type -> Ppxlib.expression
Sourceval derive_str : plugins:Meta_deriving.Plugin.t list -> name:string option -> lib:string option -> (Ppxlib.rec_flag * Ppxlib.type_declaration list) -> Ppxlib.structure_item list

Deriver for Irmin type representations.

  • ?name: overrides the default name of the generated type representation;
  • ?lib: overrides the default location for the primitive Irmin typereps. ~lib:None will assume that the typereps are available in the same namespace.
Sourceval derive_sig : plugins:Meta_deriving.Plugin.t list -> name:string option -> lib:string option -> (Ppxlib.rec_flag * Ppxlib.type_declaration list) -> Ppxlib.signature_item list

Deriver for Irmin type representation signatures.

Optional arguments have the same meaning as in derive_str.