ppx_type_directed_valueversion Documentation on ocaml.org
Get [@@deriving]-style generation of type-directed values without writing a ppx
Ppx_type_directed_value is a ppx that does [@@deriving]-style
generation of type-directed values based on user-provided modules. The
user-provided modules tell ppx_type_directed_value how to compose
type-directed values (for example, combine type-directed values of the
fields of a record to form a type-directed value for the record
itself).
This allows a wide variety of PPXs such as ppx_sexp_conv,
ppx_compare, ppx_enumerate, etc. to be implemented with
ppx_type_directed_value, but with some runtime cost.
This PPX currently supports deriving type-directed values for records, ordinary & polymorphic variants and tuples. It also supports custom user-defined attributes on record and variant fields.
| Author | Jane Street Group, LLC | 
|---|---|
| License | MIT | 
| Published | |
| Homepage | https://github.com/janestreet/ppx_type_directed_value | 
| Issue Tracker | https://github.com/janestreet/ppx_type_directed_value/issues | 
| Maintainer | Jane Street developers | 
| Dependencies | |
| Source [http] | https://ocaml.janestreet.com/ocaml-core/v0.15/files/ppx_type_directed_value-v0.15.0.tar.gz sha256=2d72561276b7b3cc39bd60ca84b202881f0afbc7b96e93705972b2cc7ad83fbc  | 
| Edit | https://github.com/ocaml/opam-repository/tree/master/packages/ppx_type_directed_value/ppx_type_directed_value.v0.15.0/opam | 
No package is dependent
          

