From: Sergei Trofimovich Date: Sun, 20 Sep 2015 13:37:23 +0000 (+0100) Subject: dev-haskell/mtl-compat: Backported Control.Monad.Except module from dev-haskell/mtl... X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f0b811994bca42b776cd31c253d93acbac677f5b;p=gentoo.git dev-haskell/mtl-compat: Backported Control.Monad.Except module from dev-haskell/mtl-2.2. Package-Manager: portage-2.2.20 --- diff --git a/dev-haskell/mtl-compat/Manifest b/dev-haskell/mtl-compat/Manifest new file mode 100644 index 000000000000..1e8f3730b057 --- /dev/null +++ b/dev-haskell/mtl-compat/Manifest @@ -0,0 +1 @@ +DIST mtl-compat-0.2.1.3.tar.gz 4584 SHA256 6458ca53593a31ebce1d94ef8dd4f6a06d050dd7ed32335f6cc6b6e5d3456894 SHA512 c9afa97eb5dc1bddcbf0e088352141d56b603562f80fcbde6811610a4e71e1496dd5f07e4338644930bf06b403bc08d35799f7063ae845ecdb71e619b2342a18 WHIRLPOOL 6e5e43a18983734c4586bc29bb49423536b82f72b9bb2b7246610f9b4e7820d342513b5497d17048ed56ec301ecc8145e7672afaf3bdd27dd788a705bfb2d6cf diff --git a/dev-haskell/mtl-compat/metadata.xml b/dev-haskell/mtl-compat/metadata.xml new file mode 100644 index 000000000000..95fbdda5c946 --- /dev/null +++ b/dev-haskell/mtl-compat/metadata.xml @@ -0,0 +1,22 @@ + + + + haskell + + 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. + + diff --git a/dev-haskell/mtl-compat/mtl-compat-0.2.1.3.ebuild b/dev-haskell/mtl-compat/mtl-compat-0.2.1.3.ebuild new file mode 100644 index 000000000000..0b90407a6947 --- /dev/null +++ b/dev-haskell/mtl-compat/mtl-compat-0.2.1.3.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +# ebuild generated by hackport 0.4.5 + +CABAL_FEATURES="lib profile" # haddock hoogle hscolour" +inherit haskell-cabal + +DESCRIPTION="Backported Control.Monad.Except module from mtl" +HOMEPAGE="https://github.com/RyanGlScott/mtl-compat" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=">=dev-haskell/mtl-2.1:=[profile?] =dev-lang/ghc-7.4.1:= +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.8 +"