From af2222cd12d08402639674351fff4fb778672180 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sun, 4 Dec 2011 18:05:02 +0000 Subject: [PATCH] Initial version. Lift control operations, like exception catching, through monad transformers (dev-vcs/git-annex depend) Package-Manager: portage-2.2.0_alpha77_p1/cvs/Linux x86_64 --- dev-haskell/monad-control/ChangeLog | 11 ++++++ dev-haskell/monad-control/metadata.xml | 30 ++++++++++++++++ .../monad-control-0.2.0.3.ebuild | 35 +++++++++++++++++++ 3 files changed, 76 insertions(+) create mode 100644 dev-haskell/monad-control/ChangeLog create mode 100644 dev-haskell/monad-control/metadata.xml create mode 100644 dev-haskell/monad-control/monad-control-0.2.0.3.ebuild diff --git a/dev-haskell/monad-control/ChangeLog b/dev-haskell/monad-control/ChangeLog new file mode 100644 index 000000000000..6289d41450b7 --- /dev/null +++ b/dev-haskell/monad-control/ChangeLog @@ -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 +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 index 000000000000..f5ba38a664d2 --- /dev/null +++ b/dev-haskell/monad-control/metadata.xml @@ -0,0 +1,30 @@ + + + + haskell + + haskell@gentoo.org + + + 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'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@: + + <https://github.com/basvandijk/bench-monad-peel-control> + + 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 index 000000000000..3a9850287a97 --- /dev/null +++ b/dev-haskell/monad-control/monad-control-0.2.0.3.ebuild @@ -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-lang/ghc-6.8.2" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.9.2 + test? ( + >=dev-haskell/cabal-1.10 +