pkgsrc/devel/ocaml-ppx_compare/DESCR
jaapb f9b02a545c New package devel/ocaml-ppx_compare
This is an OCaml library to generate comparison functions from type
definitions. It's needed as a dependency of ocaml-ppx_base.
2017-10-11 13:51:55 +00:00

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.