Initial version. Lift control operations, like exception catching, through monad...
authorSergei Trofimovich <slyfox@gentoo.org>
Sun, 4 Dec 2011 18:05:02 +0000 (18:05 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Sun, 4 Dec 2011 18:05:02 +0000 (18:05 +0000)
Package-Manager: portage-2.2.0_alpha77_p1/cvs/Linux x86_64

dev-haskell/monad-control/ChangeLog [new file with mode: 0644]
dev-haskell/monad-control/metadata.xml [new file with mode: 0644]
dev-haskell/monad-control/monad-control-0.2.0.3.ebuild [new file with mode: 0644]

diff --git a/dev-haskell/monad-control/ChangeLog b/dev-haskell/monad-control/ChangeLog
new file mode 100644 (file)
index 0000000..6289d41
--- /dev/null
@@ -0,0 +1,11 @@
+# ChangeLog for dev-haskell/monad-control
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-haskell/monad-control/ChangeLog,v 1.1 2011/12/04 18:05:02 slyfox Exp $
+
+*monad-control-0.2.0.3 (04 Dec 2011)
+
+  04 Dec 2011; Sergei Trofimovich <slyfox@gentoo.org> +metadata.xml,
+  +monad-control-0.2.0.3.ebuild:
+  Initial version. Lift control operations, like exception catching, through
+  monad transformers (dev-vcs/git-annex depend)
+
diff --git a/dev-haskell/monad-control/metadata.xml b/dev-haskell/monad-control/metadata.xml
new file mode 100644 (file)
index 0000000..f5ba38a
--- /dev/null
@@ -0,0 +1,30 @@
+<?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>
+               This package defines the type class @MonadControlIO@, a subset of
+               @MonadIO@ into which generic control operations such as @catch@ can
+               be lifted from @IO@.  Instances are based on monad transformers in
+               @MonadTransControl@, which includes all standard monad transformers
+               in the @transformers@ library except @ContT@.  For convenience, it
+               provides a wrapped version of @Control.Exception@ with types
+               generalized from @IO@ to all monads in @MonadControlIO@.
+               
+               Note that this package is a rewrite of Anders Kaseorg&#39;s @monad-peel@ library.
+               The main difference is that this package provides CPS style
+               operators and exploits the @RankNTypes@ language extension to
+               simplify most definitions.
+               
+               The package includes a copy of the @monad-peel@ testsuite written by Anders Kaseorg.
+               The tests can be performed by using @cabal test@.
+               
+               The following @critertion@ based benchmark shows that @monad-control@
+               is on average about 2.5 times faster than @monad-peel@:
+               
+               &lt;https://github.com/basvandijk/bench-monad-peel-control&gt;
+       </longdescription>
+</pkgmetadata>
diff --git a/dev-haskell/monad-control/monad-control-0.2.0.3.ebuild b/dev-haskell/monad-control/monad-control-0.2.0.3.ebuild
new file mode 100644 (file)
index 0000000..3a98502
--- /dev/null
@@ -0,0 +1,35 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-haskell/monad-control/monad-control-0.2.0.3.ebuild,v 1.1 2011/12/04 18:05:02 slyfox Exp $
+
+# ebuild generated by hackport 0.2.14
+
+EAPI="3"
+
+CABAL_FEATURES="lib profile haddock hscolour hoogle"
+inherit base haskell-cabal
+
+DESCRIPTION="Lift control operations, like exception catching, through monad transformers"
+HOMEPAGE="https://github.com/basvandijk/monad-control/"
+SRC_URI="http://hackage.haskell.org/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+RDEPEND="<dev-haskell/base-unicode-symbols-0.3
+               =dev-haskell/transformers-0.2*
+               >=dev-lang/ghc-6.8.2"
+DEPEND="${RDEPEND}
+               >=dev-haskell/cabal-1.9.2
+               test? (
+                       >=dev-haskell/cabal-1.10
+                       <dev-haskell/test-framework-0.5
+                       <dev-haskell/test-framework-hunit-0.3
+               )
+               "
+
+src_configure() {
+       cabal_src_configure $(use_enable test tests) $(cabal_flag test)
+}