guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#38423] [PATCH 33/49] gnu: Add ghc-bytestring-strict-builder.


From: Robert Vollmert
Subject: [bug#38423] [PATCH 33/49] gnu: Add ghc-bytestring-strict-builder.
Date: Fri, 29 Nov 2019 12:37:35 +0100

* gnu/packages/haskell-xyz.scm (ghc-bytestring-strict-builder): New variable.
---
 gnu/packages/haskell-xyz.scm | 43 ++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm
index acf8093de9..8637f5c637 100644
--- a/gnu/packages/haskell-xyz.scm
+++ b/gnu/packages/haskell-xyz.scm
@@ -13940,3 +13940,46 @@ they do not get forgotten so easily.")
 It is especially well-suited for generating strict bytestrings, beating the 
standard
 builder by at least the factor of 4.")
     (license license:expat)))
+
+(define-public ghc-bytestring-strict-builder
+  (package
+    (name "ghc-bytestring-strict-builder")
+    (version "0.4.5.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             
"https://hackage.haskell.org/package/bytestring-strict-builder/bytestring-strict-builder-";
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "17n6ll8k26312fgxbhws1yrswvy5dbsgyf57qksnj0akdssysy8q"))))
+    (build-system haskell-build-system)
+    (inputs
+     `(("ghc-semigroups" ,ghc-semigroups)
+       ("ghc-base-prelude" ,ghc-base-prelude)))
+    (native-inputs
+     `(("ghc-tasty" ,ghc-tasty)
+       ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
+       ("ghc-tasty-hunit" ,ghc-tasty-hunit)
+       ("ghc-quickcheck-instances"
+        ,ghc-quickcheck-instances)
+       ("ghc-quickcheck" ,ghc-quickcheck)
+       ("ghc-rerebase" ,ghc-rerebase)))
+    (arguments
+     `(#:cabal-revision
+       ("1"
+        "1snn8qb17maa76zji75i4yfz9x8ci16xp6zwg6kgwb33lf06imnd")))
+    (home-page
+     "https://github.com/nikita-volkov/bytestring-strict-builder";)
+    (synopsis
+     "An efficient strict bytestring builder")
+    (description
+     "According to 
https://github.com/nikita-volkov/bytestring-builders-benchmark,
+this library provides on average the fastest builder of strict bytestrings.
+Practical benchmarks have proven it to be highly performant as well.  The
+encoders from the postgresql-binary library have shown a stable performance
+improvement by factors of up to 10 after the migration from the standard 
builder
+to bytestring-strict-builder.")
+    (license license:expat)))
-- 
2.21.0 (Apple Git-122.2)






reply via email to

[Prev in Thread] Current Thread [Next in Thread]