[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#38423] [PATCH 15/49] gnu: Add ghc-mtl-compat.
From: |
Robert Vollmert |
Subject: |
[bug#38423] [PATCH 15/49] gnu: Add ghc-mtl-compat. |
Date: |
Fri, 29 Nov 2019 12:37:17 +0100 |
* gnu/packages/haskell-xyz.scm (ghc-mtl-compat): New variable.
---
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 dc124b37a1..be5b7b64d5 100644
--- a/gnu/packages/haskell-xyz.scm
+++ b/gnu/packages/haskell-xyz.scm
@@ -13437,3 +13437,42 @@ The implementation is based on
`unordered-containers`.")
(description
"A sensible set of defaults for writing custom Preludes.")
(license license:expat)))
+
+(define-public ghc-mtl-compat
+ (package
+ (name "ghc-mtl-compat")
+ (version "0.2.1.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://hackage.haskell.org/package/mtl-compat/mtl-compat-"
+ version
+ ".tar.gz"))
+ (sha256
+ (base32
+ "15388p9ybdn6digk6cpdsw6havd0yva8vvwl3p7fnc9sb59wln34"))))
+ (build-system haskell-build-system)
+ (arguments
+ `(#:cabal-revision
+ ("4"
+ "1mfrx8cpx0502sjv0bmlfkl0h46c4krldg8m89k4fj6iawwg2ab5")
+ #:haddock?
+ #f))
+ (home-page
+ "https://github.com/haskell-compat/mtl-compat")
+ (synopsis
+ "Backported Control.Monad.Except module from mtl")
+ (description
+ "This package backports the Control.Monad.Except module from mtl
+(if using mtl-2.2.0.1 or earlier), which reexports the ExceptT monad
+transformer and the MonadError class. This package should only be used
+if there is a need to use the Control.Monad.Except module specifically.
+If you just want the mtl class instances for ExceptT, use
+transformers-compat instead, since mtl-compat does nothing but reexport
+the instances from that package. Note that unlike how mtl-2.2 or later
+works, the Control.Monad.Except module defined in this package exports
+all of ExceptT's monad class instances. Therefore, you may have to declare
+import Control.Monad.Except () at the top of your file to get all of the
+ExceptT instances in scope.")
+ (license license:bsd-3)))
--
2.21.0 (Apple Git-122.2)
- [bug#38423] [PATCH 23/49] gnu: Add ghc-data-textual., (continued)
- [bug#38423] [PATCH 23/49] gnu: Add ghc-data-textual., Robert Vollmert, 2019/11/29
- [bug#38423] [PATCH 13/49] gnu: Add ghc-insert-ordered-containers., Robert Vollmert, 2019/11/29
- [bug#38423] [PATCH 28/49] gnu: Add ghc-concise., Robert Vollmert, 2019/11/29
- [bug#38423] [PATCH 27/49] gnu: Add ghc-type-hint., Robert Vollmert, 2019/11/29
- [bug#38423] [PATCH 39/49] gnu: Add ghc-postgresql-libpq., Robert Vollmert, 2019/11/29
- [bug#38423] [PATCH 32/49] gnu: Add ghc-bytestring-tree-builder., Robert Vollmert, 2019/11/29
- [bug#38423] [PATCH 22/49] gnu: Add ghc-data-serializer., Robert Vollmert, 2019/11/29
- [bug#38423] [PATCH 49/49] gnu: Add postgrest service., Robert Vollmert, 2019/11/29
- [bug#38423] [PATCH 48/49] gnu: Add postgrest., Robert Vollmert, 2019/11/29
- [bug#38423] [PATCH 33/49] gnu: Add ghc-bytestring-strict-builder., Robert Vollmert, 2019/11/29
- [bug#38423] [PATCH 15/49] gnu: Add ghc-mtl-compat.,
Robert Vollmert <=
- [bug#38423] [PATCH 20/49] gnu: Add ghc-data-dword., Robert Vollmert, 2019/11/29
- [bug#38423] [PATCH 02/49] gnu: Add ghc-text-latin1., Robert Vollmert, 2019/11/29
- [bug#38423] [PATCH 16/49] gnu: Add ghc-monad-time., Robert Vollmert, 2019/11/29
- [bug#38423] [PATCH 25/49] gnu: Add ghc-network-ip., Robert Vollmert, 2019/11/29
- [bug#38423] [PATCH 46/49] gnu: Add ghc-tasty-hspec., Robert Vollmert, 2019/11/29
- [bug#38423] [PATCH 29/49] gnu: Add ghc-lens-aeson., Robert Vollmert, 2019/11/29
- [bug#38423] [PATCH 36/49] gnu: Add ghc-loch-th., Robert Vollmert, 2019/11/29
- [bug#38423] [PATCH 43/49] gnu: Add ghc-swagger2., Robert Vollmert, 2019/11/29
- [bug#38423] [PATCH 45/49] gnu: Add ghc-cassava., Robert Vollmert, 2019/11/29
- [bug#38423] [PATCH 37/49] gnu: Add ghc-ranged-sets., Robert Vollmert, 2019/11/29