package ppx_variants_conv
Generation of accessor and iteration functions for ocaml variant types
Install
Dune Dependency
Authors
Maintainers
Sources
v0.17.1.tar.gz
md5=b9c62fd9b545437fe5ed24ceaa1b485b
sha512=23c9866b2f07e8e55fb7c19bbddbd1c424410fcb590c2b5039b0d194274fd5cfe6a58da55db83cfaddc698c00e42cad95756f49ef0f3d3163fd5f362ebd5e25a
doc/CHANGES.html
git version
- Make sure we don't generate functions whose name matches a keyword, e.g. when doing
type t = If | Then | Else [@@deriving variants]
. We suffix such function names with an underscore.
v0.11
- Depend on ppxlib instead of (now deprecated) ppx_core, ppx_driver and ppx_metaquot.
113.43.00
Implemented
Variants.to_rank
.Somewhat surprisingly, the preprocessor didn't reject variant inclusion despite what the documentation says, but instead would consider that they use one rank (??). Also the generated signature didn't match the generated code in that case. Removed completely the support for polymorphic variant inclusion.
113.24.00
The
iter
function generated by ppx_variants_conv and ppx_fields_conv allowed one to give function which returned values of arbitrary types as iter function. This feature constraint these functions to return unit.N.B. the signature generated by the use of
@@deriving variants
(resp. fields) in interface already constrained the type to unit.- Update to follow
Type_conv
evolution.