From patchwork Wed Jan 8 09:33:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alexandru-Sergiu Marton X-Patchwork-Id: 19691 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 173DE179BF; Wed, 8 Jan 2020 09:34:13 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_SBL,T_DKIM_INVALID,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id C2BDB1798F for ; Wed, 8 Jan 2020 09:34:12 +0000 (GMT) Received: from localhost ([::1]:41074 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ip7jA-0007Bt-6X for patchwork@mira.cbaines.net; Wed, 08 Jan 2020 04:34:12 -0500 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 X-Loop: help-debbugs@gnu.org Subject: [bug#39029] [PATCH] gnu: Add ghc-basic-prelude. Resent-From: Alexandru-Sergiu Marton Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 08 Jan 2020 09:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39029 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 39029@debbugs.gnu.org Cc: Alexandru-Sergiu Marton X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15784759959736 (code B ref -1); Wed, 08 Jan 2020 09:34:02 +0000 Received: (at submit) by debbugs.gnu.org; 8 Jan 2020 09:33:15 +0000 Received: from localhost ([127.0.0.1]:49752 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ip7iF-0002Wy-7F for submit@debbugs.gnu.org; Wed, 08 Jan 2020 04:33:15 -0500 Received: from lists.gnu.org ([209.51.188.17]:53996) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ip7iD-0002Wr-Pd for submit@debbugs.gnu.org; Wed, 08 Jan 2020 04:33:14 -0500 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=7LvJstpeRTnLoKS4lNvH03gqWyNXs3gwct+qPq8OjgM=; b=gvOysnlniGAZ6Joh8B8M7777SOPS+7LxbOq3Zsxzz4K1gXmQTGxI+I+xKI7F8TJqMu 8n8+MeGeCAOFoOMA+s0TOQcXBVV9Lhp7xFGfMnMA1QOewhPPxvW9epom2h9PxUMyMWsP AafVN1sbRdzKG1JVJs0QgbZADC+6I/U52Cmxdo68QwrKtBodgNsSw67PDF68D3bH/CN8 XC/NpFFmXxEwJUB6eZ8GbJ08O7qtU8QnP8wOy+2+55Tj9BO+8lcoMnfe3iziCB+P+NwV cI820ZCvA2J1H7v0VGoSerylsmSDD8h2DAvbf77N4KzWkQgkgtpVfdj3GYIl5nAmtFaG 7YJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=7LvJstpeRTnLoKS4lNvH03gqWyNXs3gwct+qPq8OjgM=; b=pqqeoxoQ6Lnw7at7vBFaDwxF4FMo1/y0InqRspyzPtLCMKFYQ+hKs0r3q3bhiiw2zj oArgSVDhEfa6knH71U07nihDA2pjUDYVzVd284if/YnU02VJ3ue/TABYpar6G0GBHtIP P+q2FJk2wp0CwlOlsQ1JZW/2DhRP4PpImLA6gszOENvAFmV1E9qE62Yca2nTMWo5rOA6 jKDjd9nC9n9659hZk8dhJhpPzkT3q3Um9ybjyfB4AyXXH7+wejanEAJ0RwywRHOxYon8 TkBq+jfKsUfp0AeZM26w+Kws7PfrlOjs6Gs1WMEL6oIJ1RGR7V+XVNyJ8PXCLZe0TIpz KozA== X-Gm-Message-State: APjAAAVjnAmnWbTvDfPy7JUJMjEZB+LhI2t+aJzTjeHXEw5nsMumqWbU GWdTZT9fCR56EXBvoj08D/6bfehU X-Google-Smtp-Source: APXvYqxSepF5E6cfdROtg3p575erUTfdH4lX7R0B0Dhu1dZqyTkSAsj9meyb+xyObu4fKbDRASDmHQ== X-Received: by 2002:a1c:66d6:: with SMTP id a205mr2692691wmc.171.1578475986932; Wed, 08 Jan 2020 01:33:06 -0800 (PST) Received: from localhost.localdomain ([86.107.75.45]) by smtp.gmail.com with ESMTPSA id p26sm2884137wmc.24.2020.01.08.01.33.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jan 2020 01:33:06 -0800 (PST) From: Alexandru-Sergiu Marton X-Google-Original-From: Alexandru-Sergiu Marton Date: Wed, 8 Jan 2020 11:33:35 +0200 Message-Id: <20200108093335.16444-1-brown121407@member.fsf.org> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * 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")