package fieldslib
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=c39a1dd67eddc0317008d7c04f133463859a5109782398267eb22c67cef0c582
md5=4fbf05d88be119e883abecba8c33cb85
doc/CHANGES.html
113.00.00
Added
Fields.Direct.set_all_mutable_fields, a function intended to guarantee when pooling records that one cannot forget to reinitialize some fields.Obviously one could achieve this through something like
Fields.Direct.iter, but we want a more efficient version that doesn't force the call side to create closures.
109.19.00
- Made
with fieldsgenerate the same functions in theFieldsandFields_of_*modules whether the type is calledtor not.
109.14.00
Made
with fieldsexpose first-class fields for private types while preserving privacy.There is now an additional phantom type in a first-class field that prevents building or modifying elements of a private type.
One consequence of this change is that the
Field.ttype is now an abstract type -- it used to be exposed as a record type. So, one must, e.g., changefield.Field.nametoField.name field.
109.12.00
Added back
Fields.foldtowith fieldsforprivatetypes.We had removed
Fields.foldforprivatetypes, but this caused some pain. So we're putting it back. At some point, we'll patchwith fieldsto prevent setting mutable fields on private types via the fields provided byfold.
109.11.00
with fields, for a typeuthat isn't namedt, creates moduleFields_of_urather than moduleFields. This allows one to uswith fieldson several types in the same structure.
109.10.00
- Changed
with fieldsonprivatetypes to not expose mutators or creators.