- Support comparing locally-allocated values via
[@@deriving compare ~localize]
.
- Optimized comparison for sum types when all constructors are constant.
Depend on ppxlib instead of (now deprecated) ppx_core, ppx_driver, ppx_metaquot and ppx_type_conv.
-
Disallowed
[%equal]
; use[%compare.equal]
-
Added
@compare.ignore
record-field attribute;ppx_compare
andppx_hash
skip record fields annotated with@compare.ignore
. -
Added support to
%compare
syntax for underscore (_
) as meaning a comparison function that ignores both its arguments and returns zero.
- use the new context-free API
- Follow evolution of
Ppx_core
andType_conv
.