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

Module Engine.Located

Parameters

module _ : sig ... end

Signature

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

val expand_typ : ?lib:string -> Ppxlib.core_type -> Ppxlib.expression
val 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.
val 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.

OCaml

Innovation. Community. Security.