From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id EPlvO2/XKl9UWgAA0tVLHw (envelope-from ) for ; Wed, 05 Aug 2020 15:59:43 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id +M9QN2/XKl9SEAAA1q6Kng (envelope-from ) for ; Wed, 05 Aug 2020 15:59:43 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A9F33940981 for ; Wed, 5 Aug 2020 15:59:43 +0000 (UTC) Received: from localhost ([::1]:54658 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k3LpO-0000Ty-NZ for larch@yhetil.org; Wed, 05 Aug 2020 11:59:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42110) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k3Lnm-0006t2-Fn for guix-patches@gnu.org; Wed, 05 Aug 2020 11:58:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:40505) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k3Lnm-0006Al-2c for guix-patches@gnu.org; Wed, 05 Aug 2020 11:58:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k3Lnl-0003kR-Ui for guix-patches@gnu.org; Wed, 05 Aug 2020 11:58:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42722] [PATCH 2/4] gnu: Add ghc-text-short. Resent-From: Alexandru-Sergiu Marton Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 05 Aug 2020 15:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42722 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 42722@debbugs.gnu.org Cc: Alexandru-Sergiu Marton Received: via spool by 42722-submit@debbugs.gnu.org id=B42722.159664306314363 (code B ref 42722); Wed, 05 Aug 2020 15:58:01 +0000 Received: (at 42722) by debbugs.gnu.org; 5 Aug 2020 15:57:43 +0000 Received: from localhost ([127.0.0.1]:52046 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k3LnT-0003jV-8T for submit@debbugs.gnu.org; Wed, 05 Aug 2020 11:57:43 -0400 Received: from mout02.posteo.de ([185.67.36.66]:44603) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k3LnN-0003iv-OJ for 42722@debbugs.gnu.org; Wed, 05 Aug 2020 11:57:38 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id EE1CB2400FD for <42722@debbugs.gnu.org>; Wed, 5 Aug 2020 17:57:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.ro; s=2017; t=1596643052; bh=Ba9mcHn+ddZTDJedhn6fRVXUc2/gSGAEzM4ww6pJlMU=; h=From:To:Cc:Subject:Date:From; b=Rp/+gXlMYGLtgJzVZX2ES4gl6OMsiz5dRLHKyQmJSiK4EUbaFce2IsRduKR9Eeg/7 9DYILJpbKyJCPe9AD3A31zJkEut3HvtFR23Aj5cAoEPxZinXI/welkyn43sqZrDqzh PvntWd6gckcJyrMPp0D8anpBEDTL1XxrzgTaiwFNeAut1ivImDwhght/4SW4EVLVm+ rZBWog3+fbjGwuq18XUlGwKMNeV7hPUk8IVV2t6Hcab/muSyr3hwUGfhEQBIB0FsuW 4GX59IKU2sssWDyo2IYi0qAjmafWLz3MM1+qYLJZ/pBoBLl4rHx9fh7hyDkaddWTsY U7DZPAkT6cpbg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4BMGV33YPQz6tm6; Wed, 5 Aug 2020 17:57:31 +0200 (CEST) From: Alexandru-Sergiu Marton Date: Wed, 5 Aug 2020 18:57:23 +0300 Message-Id: <20200805155725.19931-2-brown121407@posteo.ro> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200805155725.19931-1-brown121407@posteo.ro> References: <20200805155725.19931-1-brown121407@posteo.ro> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=posteo.ro header.s=2017 header.b=Rp/+gXlM; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.ro (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 5.09 X-TUID: /IlYhs1EtuGb * gnu/packages/haskell-xyz.scm (ghc-text-short): New variable. --- gnu/packages/haskell-xyz.scm | 41 ++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm index 54c77653cc..4d07eb7ea6 100644 --- a/gnu/packages/haskell-xyz.scm +++ b/gnu/packages/haskell-xyz.scm @@ -12579,6 +12579,47 @@ upgraded. Consider yourself warned!") string metrics efficiently.") (license license:bsd-3))) +(define-public ghc-text-short + (package + (name "ghc-text-short") + (version "0.1.3") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/text-short/text-short-" + version + ".tar.gz")) + (sha256 + (base32 + "0xyrxlb602z8bc9sr2y1fag0x56a20yj5qrkvy7iwc6hnznrynxz")))) + (build-system haskell-build-system) + (inputs `(("ghc-hashable" ,ghc-hashable))) + (native-inputs + `(("ghc-tasty" ,ghc-tasty) + ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck) + ("ghc-tasty-hunit" ,ghc-tasty-hunit) + ("ghc-quickcheck-instances" + ,ghc-quickcheck-instances))) + (arguments + `(#:cabal-revision + ("2" + "17cb7p0qywf2dsrq3g8qb3ssknd9wl5k0nc2pxz9gc3l8rxpkw51"))) + (home-page + "http://hackage.haskell.org/package/text-short") + (synopsis + "Memory-efficient representation of Unicode text strings") + (description + "This package provides the @code{ShortText} type which is suitable for +keeping many short strings in memory. This is similiar to how +@code{ShortByteString} relates to @code{ByteString}. The main difference +between @code{Text} and @code{ShortText} is that @code{ShortText} uses UTF-8 +instead of UTF-16 internally and also doesn't support zero-copy +slicing (thereby saving 2 words). Consequently, the memory footprint of +a (boxed) @code{ShortText} value is 4 words (2 words when unboxed) plus the +length of the UTF-8 encoded payload.") + (license license:bsd-3))) + (define-public ghc-tf-random (package (name "ghc-tf-random") -- 2.28.0