From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:42435) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ip7j1-00071b-O7 for guix-patches@gnu.org; Wed, 08 Jan 2020 04:34:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ip7j0-0006VC-Jz for guix-patches@gnu.org; Wed, 08 Jan 2020 04:34:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:43782) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ip7j0-0006Uy-Gd for guix-patches@gnu.org; Wed, 08 Jan 2020 04:34:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ip7j0-0002YW-El for guix-patches@gnu.org; Wed, 08 Jan 2020 04:34:02 -0500 Subject: [bug#39029] [PATCH] gnu: Add ghc-basic-prelude. Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:41605) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ip7iA-0006jz-UI for guix-patches@gnu.org; Wed, 08 Jan 2020 04:33:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ip7i8-0005YI-MJ for guix-patches@gnu.org; Wed, 08 Jan 2020 04:33:10 -0500 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:40157) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ip7i8-0005WR-GD for guix-patches@gnu.org; Wed, 08 Jan 2020 04:33:08 -0500 Received: by mail-wm1-x331.google.com with SMTP id t14so1695908wmi.5 for ; Wed, 08 Jan 2020 01:33:08 -0800 (PST) From: Alexandru-Sergiu Marton Date: Wed, 8 Jan 2020 11:33:35 +0200 Message-Id: <20200108093335.16444-1-brown121407@member.fsf.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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: 39029@debbugs.gnu.org Cc: Alexandru-Sergiu Marton * gnu/packages/haskell-xyz.scm (ghc-basic-prelude): 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 3a9880f58c..b2279f6cdd 100644 --- a/gnu/packages/haskell-xyz.scm +++ b/gnu/packages/haskell-xyz.scm @@ -903,6 +903,47 @@ stand for certain ASCII character sequences, i.e. → instead of @code{->}, ∀ instead of @code{forall} and many others.") (license license:bsd-3))) +(define-public ghc-basic-prelude + (package + (name "ghc-basic-prelude") + (version "0.7.0") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/basic-prelude/" + "basic-prelude-" version ".tar.gz")) + (sha256 + (base32 + "0yckmnvm6i4vw0mykj4fzl4ldsf67v8d2h0vp1bakyj84n4myx8h")))) + (build-system haskell-build-system) + (inputs + `(("ghc-hashable" ,ghc-hashable) + ("ghc-unordered-containers" + ,ghc-unordered-containers) + ("ghc-vector" ,ghc-vector))) + (home-page + "https://github.com/snoyberg/basic-prelude#readme") + (synopsis + "Enhanced core prelude; a common foundation for alternate preludes") + (description + "The premise of basic-prelude is that there are a lot of very commonly +desired features missing from the standard Prelude, such as commonly used +operators (<$> and >=>, for instance) and imports for common datatypes +(e.g., ByteString and Vector). At the same time, there are lots of other +components which are more debatable, such as providing polymorphic versions +of common functions. + +So basic-prelude is intended to give a common foundation for a number of +alternate preludes. The package provides two modules: CorePrelude provides +the common ground for other preludes to build on top of, while BasicPrelude +exports CorePrelude together with commonly used list functions to provide a +drop-in replacement for the standard Prelude. + +Users wishing to have an improved Prelude can use BasicPrelude. Developers +wishing to create a new prelude should use CorePrelude.") + (license license:expat))) + (define-public ghc-bifunctors (package (name "ghc-bifunctors") -- 2.24.1