From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:44112) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iaedF-0004sP-0k for guix-patches@gnu.org; Fri, 29 Nov 2019 06:40:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iaedA-0003kD-H2 for guix-patches@gnu.org; Fri, 29 Nov 2019 06:40:14 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53623) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iaedA-0003hf-33 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 1iaed9-0006JE-1U for guix-patches@gnu.org; Fri, 29 Nov 2019 06:40:11 -0500 Subject: [bug#38423] [PATCH 37/49] gnu: Add ghc-ranged-sets. Resent-Message-ID: From: Robert Vollmert Date: Fri, 29 Nov 2019 12:37:39 +0100 Message-Id: <20191129113751.82405-37-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-ranged-sets): New variable. --- gnu/packages/haskell-xyz.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm index 1b9db3f519..88dd872b9e 100644 --- a/gnu/packages/haskell-xyz.scm +++ b/gnu/packages/haskell-xyz.scm @@ -14055,3 +14055,32 @@ to bytestring-strict-builder.") the location of the failure call. The location message includes the file name, line and column numbers.") (license license:bsd-3))) + +(define-public ghc-ranged-sets + (package + (name "ghc-ranged-sets") + (version "0.4.0") ;; not stackage LTS 8.4 + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/Ranged-sets/Ranged-sets-" + version + ".tar.gz")) + (sha256 + (base32 + "1skd2a6yw7dd5vq8x81kwh28gi8sgyzg9qqqyadxmgpvy11sh9ab")))) + (build-system haskell-build-system) + (inputs + `(("ghc-hunit" ,ghc-hunit) + ("ghc-quickcheck" ,ghc-quickcheck))) + (home-page + "https://github.com/PaulJohnson/Ranged-sets") + (synopsis "Ranged sets for Haskell") + (description + "A ranged set is an ordered list of ranges. +This allows sets such as all reals x such that: +(0.25 < x <= 0.75 or 1.4 <= x < 2.3 or 4.5 < x). +Alternatively you can have all strings s such that: +(\"F\" <= s < \"G\")") + (license license:bsd-3))) -- 2.21.0 (Apple Git-122.2)