summaryrefslogtreecommitdiff
path: root/dev-haskell/mtl-compat
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-haskell/mtl-compat
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-haskell/mtl-compat')
-rw-r--r--dev-haskell/mtl-compat/Manifest4
-rw-r--r--dev-haskell/mtl-compat/metadata.xml28
-rw-r--r--dev-haskell/mtl-compat/mtl-compat-0.2.1.3.ebuild40
3 files changed, 72 insertions, 0 deletions
diff --git a/dev-haskell/mtl-compat/Manifest b/dev-haskell/mtl-compat/Manifest
new file mode 100644
index 000000000000..111dde342c94
--- /dev/null
+++ b/dev-haskell/mtl-compat/Manifest
@@ -0,0 +1,4 @@
+DIST mtl-compat-0.2.1.3.tar.gz 4584 SHA256 6458ca53593a31ebce1d94ef8dd4f6a06d050dd7ed32335f6cc6b6e5d3456894 SHA512 c9afa97eb5dc1bddcbf0e088352141d56b603562f80fcbde6811610a4e71e1496dd5f07e4338644930bf06b403bc08d35799f7063ae845ecdb71e619b2342a18 WHIRLPOOL 6e5e43a18983734c4586bc29bb49423536b82f72b9bb2b7246610f9b4e7820d342513b5497d17048ed56ec301ecc8145e7672afaf3bdd27dd788a705bfb2d6cf
+EBUILD mtl-compat-0.2.1.3.ebuild 1004 SHA256 a69a38fefedb1909c310e14fb96a237748e6bc788641c0dd1f388a9512b3ceda SHA512 9a709056bb20e2d5e6e18fb0fd6672c0d25321ca404d4318f446c26984e8a751c7e4cee22017d8b45d5bd1c3684bba6a5420ec090465c3c36a664dbc1c6e95cd WHIRLPOOL 6e0c42b61f3c9e50eb0e9cd481c72b25c0314eefc734d2787bdce75961a87778a21dfce48b3ff64cede240544faa57cf6ff7c3bc1918658bce11ff1022c2d425
+MISC ChangeLog 1212 SHA256 d38292dfb6b5429cbd3f2a8f1c56b3ce7f3f461339d63bc18e220990fd414747 SHA512 28d2e1ab8a013e455df7d6611f24364a63bf7cd9b41ddaf5b29931f512e1d5fa4cf966c37a8519e716bfb28ea476248bee16d32f60c35ef2a85e1c5942416102 WHIRLPOOL dda0587ec5e6e76044b8e25e630fc3fed2cc49f6f393b1b4c7badbcdb28b514dc96f8337baad12d22f29f86a254e656f799b62b142bb2fd9f6baf2a4609dc5bc
+MISC metadata.xml 1161 SHA256 c247dc592efa786feb8e2bbcb6c528c5f50c2d11c7f4b761b10400fb3915621e SHA512 3a51b3c6dd7b62ef720aa1fcefd0bd810c36b8ac0322e83ca0d1552ace59bea71f55e4e77fc97a9aafd304b833ab8b3c11dee0ccac29b46418b99d367510cdbd WHIRLPOOL 332cf7d298aa84ecbf987ba461ed23ac213d9ed85c35b97d8e49394f898c86a1d5de4705b1ec4e095cf1ffad512cc91c22c6c5645a3d29c11ac0ee084f811675
diff --git a/dev-haskell/mtl-compat/metadata.xml b/dev-haskell/mtl-compat/metadata.xml
new file mode 100644
index 000000000000..033f9421a7a1
--- /dev/null
+++ b/dev-haskell/mtl-compat/metadata.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>haskell@gentoo.org</email>
+ <name>Gentoo Haskell</name>
+ </maintainer>
+ <longdescription>
+ 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.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">RyanGlScott/mtl-compat</remote-id>
+ </upstream>
+</pkgmetadata>
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..30aafe733b88
--- /dev/null
+++ b/dev-haskell/mtl-compat/mtl-compat-0.2.1.3.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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="alpha amd64 ppc sparc x86"
+IUSE=""
+
+RDEPEND=">=dev-haskell/mtl-2.1:=[profile?] <dev-haskell/mtl-2.3:=[profile?]
+ dev-haskell/transformers-compat:=
+ >=dev-lang/ghc-7.4.1:=
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.8
+"
+
+src_configure() {
+ local mtl_arg=()
+
+ has_version '>=dev-haskell/mtl-2.0.1' && \
+ has_version '<dev-haskell/mtl-2.2' && \
+ mtl_arg+=(--flag=two-point-one)
+ has_version '>=dev-haskell/mtl-2.2.0.1' && \
+ has_version '<dev-haskell/mtl-2.2.1' && \
+ mtl_arg+=(--flag=two-point-two)
+
+ haskell-cabal_src_configure \
+ ${mtl_arg}
+}