Type-driven code generation for OCaml
However, there is a ppx (a pre-processor) which can do the job : ppx_deriving. You just have to anotate your type in oder to get the compare function automatically generated :
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.
Bad documentation of Jane Street libraries
3 projects | reddit.com/r/ocaml | 23 Mar 2022
Derives mundane Golang functions that you do not want to maintain
1 project | news.ycombinator.com | 15 Feb 2022
Recommended method for pretty-printing collections in Core?
2 projects | reddit.com/r/ocaml | 9 Oct 2021