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

OCaml

Innovation. Community. Security.