f9b02a545c
This is an OCaml library to generate comparison functions from type definitions. It's needed as a dependency of ocaml-ppx_base.
7 lines
432 B
Text
7 lines
432 B
Text
Generation of fast comparison functions from type expressions and definitions.
|
|
|
|
Ppx_compare is a ppx rewriter that derives comparison functions from type
|
|
representations. The scaffolded functions are usually much faster than ocaml's
|
|
Pervasives.compare. Scaffolding functions also gives you more flexibility by
|
|
allowing you to override them for a specific type and more safety by making
|
|
sure that you only compare comparable values.
|