Movatterモバイル変換


[0]ホーム

URL:


packageppx_type_directed_value

  1. Overview
  2. Docs

You can search for identifiers within the package.

in-package search v0.2.0

Get [@@deriving]-style generation of type-directed values without writing a ppx

Install

dune-project
 Dependency

Authors

Maintainers

Sources

ppx_type_directed_value-v0.15.0.tar.gz
sha256=2d72561276b7b3cc39bd60ca84b202881f0afbc7b96e93705972b2cc7ad83fbc

Description

Ppx_type_directed_value is a ppx that does[@@deriving]-stylegeneration of type-directed values based on user-provided modules. Theuser-provided modules tellppx_type_directed_value how to composetype-directed values (for example, combine type-directed values of thefields of a record to form a type-directed value for the recorditself).

This allows a wide variety of PPXs such asppx_sexp_conv,ppx_compare,ppx_enumerate, etc. to be implemented withppx_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 attributeson record and variant fields.

Published:21 Mar 2022

Dependencies (5)

  1. ppxlib>= "0.23.0"
  2. dune>= "2.0.0"
  3. ppx_jane>= "v0.15" & < "v0.16"
  4. base>= "v0.15" & < "v0.16"
  5. ocaml>= "4.08.0"

Dev Dependencies

None

Used by

None

Conflicts

None


[8]ページ先頭

©2009-2025 Movatter.jp