summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-haskell/monadcatchio-transformers/ChangeLog10
-rw-r--r--dev-haskell/monadcatchio-transformers/files/monadcatchio-transformers-0.3.0.0-ghc-7.5.patch18
-rw-r--r--dev-haskell/monadcatchio-transformers/metadata.xml15
-rw-r--r--dev-haskell/monadcatchio-transformers/monadcatchio-transformers-0.3.0.0.ebuild33
4 files changed, 76 insertions, 0 deletions
diff --git a/dev-haskell/monadcatchio-transformers/ChangeLog b/dev-haskell/monadcatchio-transformers/ChangeLog
new file mode 100644
index 000000000000..cb0091b3a709
--- /dev/null
+++ b/dev-haskell/monadcatchio-transformers/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-haskell/monadcatchio-transformers
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-haskell/monadcatchio-transformers/ChangeLog,v 1.1 2013/08/25 04:48:16 qnikst Exp $
+
+*monadcatchio-transformers-0.3.0.0 (25 Aug 2013)
+
+ 25 Aug 2013; Alexander Vershilov <qnikst@gentoo.org>
+ +files/monadcatchio-transformers-0.3.0.0-ghc-7.5.patch, +metadata.xml,
+ +monadcatchio-transformers-0.3.0.0.ebuild:
+ [dev-haskell/monadcatchio-transformers: initial layout
diff --git a/dev-haskell/monadcatchio-transformers/files/monadcatchio-transformers-0.3.0.0-ghc-7.5.patch b/dev-haskell/monadcatchio-transformers/files/monadcatchio-transformers-0.3.0.0-ghc-7.5.patch
new file mode 100644
index 000000000000..6ff1b3fba332
--- /dev/null
+++ b/dev-haskell/monadcatchio-transformers/files/monadcatchio-transformers-0.3.0.0-ghc-7.5.patch
@@ -0,0 +1,18 @@
+--- MonadCatchIO-transformers-0.3.0.0-orig/src/Control/Monad/CatchIO.hs 2012-04-10 07:23:39.000000000 +1000
++++ MonadCatchIO-transformers-0.3.0.0/src/Control/Monad/CatchIO.hs 2012-07-07 21:21:26.691029176 +1000
+@@ -1,4 +1,4 @@
+-{-# LANGUAGE ExistentialQuantification, ScopedTypeVariables #-}
++{-# LANGUAGE CPP, ExistentialQuantification, ScopedTypeVariables #-}
+ module Control.Monad.CatchIO
+ (
+ MonadCatchIO(..)
+@@ -16,7 +16,9 @@
+
+ where
+
++#if !MIN_VERSION_base(4,6,0)
+ import Prelude hiding ( catch )
++#endif
+ import Control.Applicative ((<$>))
+ import qualified Control.Exception.Extensible as E
+
diff --git a/dev-haskell/monadcatchio-transformers/metadata.xml b/dev-haskell/monadcatchio-transformers/metadata.xml
new file mode 100644
index 000000000000..dd3d260307c3
--- /dev/null
+++ b/dev-haskell/monadcatchio-transformers/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>haskell</herd>
+ <maintainer>
+ <email>haskell@gentoo.org</email>
+ </maintainer>
+ <longdescription>
+ Provides functions to throw and catch exceptions. Unlike the functions from
+ @Control.Exception@, which work in @IO@, these work in any stack of monad
+ transformers (from the &#39;transformers&#39; package) with @IO@ as the base monad.
+ You can extend this functionality to other monads, by creating an instance
+ of the @MonadCatchIO@ class.
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-haskell/monadcatchio-transformers/monadcatchio-transformers-0.3.0.0.ebuild b/dev-haskell/monadcatchio-transformers/monadcatchio-transformers-0.3.0.0.ebuild
new file mode 100644
index 000000000000..d839d7776ba3
--- /dev/null
+++ b/dev-haskell/monadcatchio-transformers/monadcatchio-transformers-0.3.0.0.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-haskell/monadcatchio-transformers/monadcatchio-transformers-0.3.0.0.ebuild,v 1.1 2013/08/25 04:48:16 qnikst Exp $
+
+EAPI=5
+
+# ebuild generated by hackport 0.3.9999
+
+CABAL_FEATURES="lib profile haddock hoogle hscolour"
+inherit base haskell-cabal
+
+MY_PN="MonadCatchIO-transformers"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Monad-transformer compatible version of the Control.Exception module"
+HOMEPAGE="http://hackage.haskell.org/package/MonadCatchIO-transformers"
+SRC_URI="mirror://hackage/packages/archive/${MY_PN}/${PV}/${MY_P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="=dev-haskell/extensible-exceptions-0.1*:=[profile?]
+ >=dev-haskell/transformers-0.2:=[profile?]
+ <dev-haskell/transformers-0.4:=[profile?]
+ >=dev-lang/ghc-6.10.4:="
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.6"
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=("${FILESDIR}/${PN}-0.3.0.0-ghc-7.5.patch")