[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 57/96] gnu: Add ocaml-ppx-compare
From: |
Julien Lepiller |
Subject: |
[PATCH 57/96] gnu: Add ocaml-ppx-compare |
Date: |
Tue, 3 Jan 2017 20:11:38 +0100 |
* gnu/packages/ocaml.scm (ocaml-ppx-compare): New variable.
---
gnu/packages/ocaml.scm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index c028fa26c..369e1f769 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -2052,3 +2052,28 @@ different preprocessors that generate code from type
specifications.")
(synopsis "Syntax extension for writing in-line benchmarks in ocaml code")
(description "Syntax extension for writing in-line benchmarks in ocaml
code.")
(license license:asl2.0)))
+
+(define-public ocaml-ppx-compare
+ (package
+ (name "ocaml-ppx-compare")
+ (version "113.33.03")
+ (home-page "https://github.com/janestreet/ppx_compare/")
+ (source (janestreet-origin "ppx_compare" version
+ "0bfhi33kq9l4q6zzc6svki2csracz5j4731c3npcy6cs73jynn0z"))
+ (build-system ocaml-build-system)
+ (native-inputs `(("js-build-tools" ,ocaml-js-build-tools)
+ ("opam" ,opam)
+ ("ppx-core" ,ocaml-ppx-core)))
+ (propagated-inputs `(("ppx-driver" ,ocaml-ppx-driver)
+ ("ppx-tools" ,ocaml-ppx-tools)
+ ("ppx-core" ,ocaml-ppx-core)
+ ("ppx-type-conv" ,ocaml-ppx-type-conv)))
+ (arguments janestreet-arguments)
+ (synopsis "Generation of comparison functions from types")
+ (description "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.")
+ (license license:asl2.0)))
--
2.11.0
- [PATCH 47/96] gnu: Add ocaml-bin-prot, (continued)
- [PATCH 47/96] gnu: Add ocaml-bin-prot, Julien Lepiller, 2017/01/03
- [PATCH 48/96] gnu: Add ocaml-fieldslib, Julien Lepiller, 2017/01/03
- [PATCH 49/96] gnu: Add ocaml-ppx-core, Julien Lepiller, 2017/01/03
- [PATCH 50/96] gnu: Add ocaml-ppx-optcomp, Julien Lepiller, 2017/01/03
- [PATCH 51/96] gnu: Add ocaml-ppx-driver, Julien Lepiller, 2017/01/03
- [PATCH 52/96] gnu: Add ocaml-cppo, Julien Lepiller, 2017/01/03
- [PATCH 53/96] gnu: Add ocaml-ppx-deriving, Julien Lepiller, 2017/01/03
- [PATCH 54/96] gnu: Add ocaml-ppx-type-conv, Julien Lepiller, 2017/01/03
- [PATCH 55/96] gnu: Add ocaml-ppx-inline-test, Julien Lepiller, 2017/01/03
- [PATCH 56/96] gnu: Add ocaml-ppx-bench, Julien Lepiller, 2017/01/03
- [PATCH 57/96] gnu: Add ocaml-ppx-compare,
Julien Lepiller <=
- [PATCH 58/96] gnu: Add ocaml-sexplib, Julien Lepiller, 2017/01/03
- [PATCH 59/96] gnu: Add ocaml-typerep, Julien Lepiller, 2017/01/03
- [PATCH 60/96] gnu: Add ocaml-variantslib, Julien Lepiller, 2017/01/03
- [PATCH 61/96] gnu: Add ocaml-ppx-sexp-conv, Julien Lepiller, 2017/01/03
- [PATCH 62/96] gnu: Add ocaml-ppx-variants-conv, Julien Lepiller, 2017/01/03
- [PATCH 64/96] gnu: Add ocaml-ppx-assert, Julien Lepiller, 2017/01/03
- [PATCH 63/96] gnu: Add ocaml-ppx-here, Julien Lepiller, 2017/01/03
- [PATCH 65/96] gnu: Add ocaml-ppx-enumerate, Julien Lepiller, 2017/01/03
- [PATCH 66/96] gnu: Add ocaml-ppx-let, Julien Lepiller, 2017/01/03
- [PATCH 68/96] gnu: Add ocaml-ppx-sexp-value, Julien Lepiller, 2017/01/03