From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:44510) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iaedM-00051o-Nw for guix-patches@gnu.org; Fri, 29 Nov 2019 06:40:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iaedA-0003jw-Gm for guix-patches@gnu.org; Fri, 29 Nov 2019 06:40:22 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53616) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iaed9-0003dg-3j for guix-patches@gnu.org; Fri, 29 Nov 2019 06:40:12 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iaed8-0006Iw-0x for guix-patches@gnu.org; Fri, 29 Nov 2019 06:40:10 -0500 Subject: [bug#38423] [PATCH 33/49] gnu: Add ghc-bytestring-strict-builder. Resent-Message-ID: From: Robert Vollmert Date: Fri, 29 Nov 2019 12:37:35 +0100 Message-Id: <20191129113751.82405-33-rob@vllmrt.net> In-Reply-To: <20191129113751.82405-1-rob@vllmrt.net> References: <20191129113751.82405-1-rob@vllmrt.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 38423@debbugs.gnu.org Cc: Robert Vollmert * 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)