unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#39029] [PATCH] gnu: Add ghc-basic-prelude.
@ 2020-01-08  9:33 Alexandru-Sergiu Marton
  2020-03-29 19:10 ` bug#39029: " Marius Bakke
  0 siblings, 1 reply; 2+ messages in thread
From: Alexandru-Sergiu Marton @ 2020-01-08  9:33 UTC (permalink / raw)
  To: 39029; +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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#39029: [PATCH] gnu: Add ghc-basic-prelude.
  2020-01-08  9:33 [bug#39029] [PATCH] gnu: Add ghc-basic-prelude Alexandru-Sergiu Marton
@ 2020-03-29 19:10 ` Marius Bakke
  0 siblings, 0 replies; 2+ messages in thread
From: Marius Bakke @ 2020-03-29 19:10 UTC (permalink / raw)
  To: Alexandru-Sergiu Marton, 39029-done; +Cc: Alexandru-Sergiu Marton

[-- Attachment #1: Type: text/plain, Size: 174 bytes --]

Alexandru-Sergiu Marton <brown121407@gmail.com> writes:

> * gnu/packages/haskell-xyz.scm (ghc-basic-prelude): New variable.

I fixed the indentation and committed.  Thanks!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-03-29 19:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-08  9:33 [bug#39029] [PATCH] gnu: Add ghc-basic-prelude Alexandru-Sergiu Marton
2020-03-29 19:10 ` bug#39029: " Marius Bakke

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).