[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/17: gnu: Add ghc-transformers.
From: |
guix-commits |
Subject: |
02/17: gnu: Add ghc-transformers. |
Date: |
Fri, 8 May 2020 05:09:11 -0400 (EDT) |
cbaines pushed a commit to branch master
in repository guix.
commit 460e4e42c8a5c2a1a73772916165f3c434ee46c9
Author: John Soo <address@hidden>
AuthorDate: Fri Dec 13 07:04:13 2019 -0800
gnu: Add ghc-transformers.
* gnu/packages/haskell-xyz.scm (ghc-transformers): New variable.
Signed-off-by: Christopher Baines <address@hidden>
---
gnu/packages/haskell-xyz.scm | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm
index 1ff6f30..6a4d958 100644
--- a/gnu/packages/haskell-xyz.scm
+++ b/gnu/packages/haskell-xyz.scm
@@ -12127,6 +12127,45 @@ from a shell. The @code{tldr} pages are a community
effort to simplify the
man pages with practical examples.")
(license license:bsd-3)))
+(define-public ghc-transformers
+ (package
+ (name "ghc-transformers")
+ (version "0.5.6.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "mirror://hackage/package/transformers/transformers-"
+ version
+ ".tar.gz"))
+ (sha256
+ (base32
+ "0v66j5k0xqk51pmca55wq192qyw2p43s2mgxlz4f95q2c1fpjs5n"))))
+ (build-system haskell-build-system)
+ (home-page
+ "http://hackage.haskell.org/package/transformers")
+ (synopsis "Concrete functor and monad transformers")
+ (description
+ "Transformers provides functor and monad transformers, inspired by the
+paper \"Functional Programming with Overloading and Higher-Order
+Polymorphism\", by Mark P Jones, in Advanced School of Functional Programming,
+1995 @url{http://web.cecs.pdx.edu/~mpj/pubs/springschool.html}.
+
+This package contains:
+@itemize
+@item the monad transformer class (in @code{Control.Monad.Trans.Class})
+@item concrete functor and monad transformers, each with associated operations
+and functions to lift operations associated with other transformers.
+@end itemize
+
+This package can be used on its own in portable Haskell code, in which case
+operations need to be manually lifted through transformer stacks (see
+@code{Control.Monad.Trans.Class} for some examples). Alternatively, it can be
+used with the non-portable monad classes in the mtl or monads-tf packages,
+which automatically lift operations introduced by monad transformers through
+other transformers.")
+ (license license:bsd-3)))
+
(define-public ghc-transformers-base
(package
(name "ghc-transformers-base")
- branch master updated (503447a -> de488b3), guix-commits, 2020/05/08
- 02/17: gnu: Add ghc-transformers.,
guix-commits <=
- 01/17: gnu: Add ghc-utf8-light., guix-commits, 2020/05/08
- 05/17: gnu: Add ghc-wai-websockets., guix-commits, 2020/05/08
- 06/17: gnu: Add ghc-sourcemap., guix-commits, 2020/05/08
- 07/17: gnu: Add ghc-mtl-compat., guix-commits, 2020/05/08
- 03/17: gnu: Add ghc-tasty-hspec., guix-commits, 2020/05/08
- 08/17: gnu: Add ghc-protolude., guix-commits, 2020/05/08
- 09/17: gnu: Add ghc-pattern-arrows., guix-commits, 2020/05/08
- 10/17: gnu: Add ghc-language-javascript., guix-commits, 2020/05/08
- 11/17: gnu: Add ghc-bower-json., guix-commits, 2020/05/08
- 13/17: gnu: Add ghc-assoc., guix-commits, 2020/05/08