package ppx_repr

  1. Overview
  2. Docs
type nonrec record_field_repr = {
  1. field_name : string;
  2. field_repr : Ppxlib.expression;
}
and variant_case_repr = {
  1. case_name : string;
  2. case_cons : (Ppxlib.expression * int) option;
}
type (_, _) t =
  1. | Record : (Ppxlib.label_declaration, record_field_repr) t
  2. | Variant : (Ppxlib.constructor_declaration, variant_case_repr) t
  3. | Polyvariant : (Ppxlib.row_field, variant_case_repr) t

The algebraic datatypes supported by this module, parameterised by:

  • 'a: the subcomponent type of the algebraic type
  • 'b: a generic representation of the subcomponent type necessary to derive the composite type representation
OCaml

Innovation. Community. Security.