[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/40: gnu: Add ocaml-ppx-compare.
From: |
guix-commits |
Subject: |
07/40: gnu: Add ocaml-ppx-compare. |
Date: |
Tue, 5 Feb 2019 16:34:52 -0500 (EST) |
roptat pushed a commit to branch master
in repository guix.
commit c16c8bb68d389edcc7b866a8e91abba0e0204241
Author: Julien Lepiller <address@hidden>
Date: Fri Feb 1 16:39:59 2019 +0100
gnu: Add ocaml-ppx-compare.
* gnu/packages/ocaml.scm (ocaml-ppx-compare): New variable.
---
gnu/packages/ocaml.scm | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 7e57752..b65c633 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -5164,3 +5164,32 @@ OCaml AST in the OCaml syntax;
@item a generator of open recursion classes from type definitions.
@end itemize")
(license license:expat)))
+
+(define-public ocaml-ppx-compare
+ (package
+ (name "ocaml-ppx-compare")
+ (version "0.11.1")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/janestreet/ppx_compare.git")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "06bq4m1bsm4jlx4g7wh5m99qky7xm4c2g52kaz6pv25hdn5agi2m"))))
+ (build-system dune-build-system)
+ (propagated-inputs
+ `(("ocaml-base" ,ocaml-base)
+ ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
+ ("ocaml-ppxlib" ,ocaml-ppxlib)))
+ (properties `((upstream-name . "ppx_compare")))
+ (home-page "https://github.com/janestreet/ppx_compare")
+ (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)))
- 26/40: gnu: Add ocaml-ppx-let., (continued)
- 26/40: gnu: Add ocaml-ppx-let., guix-commits, 2019/02/05
- 12/40: gnu: Add ocaml-ppx-variants-conv., guix-commits, 2019/02/05
- 21/40: gnu: Add ocaml-ppx-sexp-value., guix-commits, 2019/02/05
- 06/40: gnu: ocaml: Use propagated-inputs., guix-commits, 2019/02/05
- 22/40: gnu: Add ocaml-ppx-sexp-message., guix-commits, 2019/02/05
- 18/40: gnu: Add ocaml-ppx-bench., guix-commits, 2019/02/05
- 09/40: gnu: Add ocaml-variantslib., guix-commits, 2019/02/05
- 20/40: gnu: Add ocaml-typerep., guix-commits, 2019/02/05
- 11/40: gnu: Add ocaml-ppx-sexp-conv., guix-commits, 2019/02/05
- 13/40: gnu: Add ocaml-ppx-custom-printf., guix-commits, 2019/02/05
- 07/40: gnu: Add ocaml-ppx-compare.,
guix-commits <=
- 04/40: gnu: ocaml-ppx-derivers: Add upstream-name., guix-commits, 2019/02/05
- 14/40: gnu: Add ocaml-bin-prot., guix-commits, 2019/02/05
- 10/40: gnu: Add ocaml-ppx-fields-conv., guix-commits, 2019/02/05
- 02/40: import: opam: Fix conditions., guix-commits, 2019/02/05
- 03/40: import: opam: Replace "_" with "-" in imported names., guix-commits, 2019/02/05
- 01/40: gnu: unison: Update to 2.51.1., guix-commits, 2019/02/05
- 05/40: import: opam: Work around janestreet version numbers., guix-commits, 2019/02/05