diff options
Diffstat (limited to 'dev-haskell/lifted-async')
-rw-r--r-- | dev-haskell/lifted-async/Manifest | 4 | ||||
-rw-r--r-- | dev-haskell/lifted-async/files/lifted-async-0.2.0.2-monad-control-1.1.patch | 69 | ||||
-rw-r--r-- | dev-haskell/lifted-async/lifted-async-0.2.0.2-r1.ebuild | 37 | ||||
-rw-r--r-- | dev-haskell/lifted-async/lifted-async-0.2.0.2.ebuild | 34 | ||||
-rw-r--r-- | dev-haskell/lifted-async/lifted-async-0.2.0.ebuild | 34 | ||||
-rw-r--r-- | dev-haskell/lifted-async/lifted-async-0.6.0.1.ebuild | 41 | ||||
-rw-r--r-- | dev-haskell/lifted-async/lifted-async-0.7.0.1.ebuild | 41 | ||||
-rw-r--r-- | dev-haskell/lifted-async/metadata.xml | 15 |
8 files changed, 275 insertions, 0 deletions
diff --git a/dev-haskell/lifted-async/Manifest b/dev-haskell/lifted-async/Manifest new file mode 100644 index 000000000000..1d297942c593 --- /dev/null +++ b/dev-haskell/lifted-async/Manifest @@ -0,0 +1,4 @@ +DIST lifted-async-0.2.0.2.tar.gz 6907 SHA256 ee512dc63f21cc212db1a85f5acc49a96b6400f85012ed6fe68ede4e477b581f SHA512 a69e3f93c33ca76889afd894fcadb3f0d53fae05ff47bdbaa5d164deb756c60f7282671bdfa14d092b0a985f5cdf30746fcf847241aeda08be553f7c8d90bce3 WHIRLPOOL 6801186706e9b2746cb7928af21d494e353b6342e942dcee0ae9ac8b72fb3719c916842510400c9c8aed495062189b0256b842f205903dcd9f065e009fc3bc13 +DIST lifted-async-0.2.0.tar.gz 6831 SHA256 d430a5dbca6a526f773d5019c483f79b1fe49cdb5cca5b1a78aaa70d86f90fe9 SHA512 bd0182c0ecbd1a5e46979719431e2facde276e9e31dd33615e2b433cb535fb47a373bf1b30ab0911e9c03ad9fc9d8cb9dcc7070991a7172b9ca647b9df5a51cc WHIRLPOOL e000134c2451e18c6d232c6b0f9abecf219bb3466b5e20442a6fef6c0ab4d89127f370606d8c4e947cc951e56bdab36fa18e255a51b17a39357a45433eeb0745 +DIST lifted-async-0.6.0.1.tar.gz 8871 SHA256 aeeacd800a604c6a239b3bb0219ef23397b01c7e22e016aae9d21a41f58a0b8b SHA512 afa436919bf50a343739ec9ca1e492cdac037df1e286812e77089c939303ce00a0f8681303eb41ea476df5d4013be6ef45c63c161ab0fa92b0ced4a0c4e57120 WHIRLPOOL 7ac3572cc38eb681972536f0aa98a3f061484967923b2ff64cd5bdb1ff3ce48ca34cb13a2ae75a492f5e5ef1a516cb760a7f5cedb54bad04cf9cc422adfad265 +DIST lifted-async-0.7.0.1.tar.gz 9060 SHA256 c3235d0f4a90baba3217269562bee655c6d9c538e2b57b6c5b23da4ef1bb6e6a SHA512 858c6fcf7a61e3f37d55c63b3fd4aebb43951031540db0121a8254107cccc63d37bc43975d89779e1b21f6e0f6c93d81bbda56877671bef58d9797c6475beccc WHIRLPOOL c2d292de9bfabcc68b396a8a3ef02f5b6557dfd399f01354daf361aa5f0fc5bf4f41b617e7374298174eecb7940f7a585d9312b1aecaf20c97f75a5bc4679ee9 diff --git a/dev-haskell/lifted-async/files/lifted-async-0.2.0.2-monad-control-1.1.patch b/dev-haskell/lifted-async/files/lifted-async-0.2.0.2-monad-control-1.1.patch new file mode 100644 index 000000000000..970d9842f770 --- /dev/null +++ b/dev-haskell/lifted-async/files/lifted-async-0.2.0.2-monad-control-1.1.patch @@ -0,0 +1,69 @@ +commit 448176aa98e03a31121501af004d8159e92b2f66 +Author: Roman Cheplyaka <roma@ro-che.info> +Date: Tue Dec 16 12:09:52 2014 +0200 + + Make lifted-async build with monad-control-1.0 + +diff --git a/src/Control/Concurrent/Async/Lifted.hs b/src/Control/Concurrent/Async/Lifted.hs +index fa5a158..e5034c1 100644 +--- a/src/Control/Concurrent/Async/Lifted.hs ++++ b/src/Control/Concurrent/Async/Lifted.hs +@@ -2,6 +2,7 @@ + {-# LANGUAGE KindSignatures #-} + {-# LANGUAGE RankNTypes #-} + {-# LANGUAGE TypeFamilies #-} ++{-# LANGUAGE ScopedTypeVariables #-} + + {- | + Module : Control.Concurrent.Async.Lifted +@@ -47,7 +48,7 @@ module Control.Concurrent.Async.Lifted + + import Control.Applicative + import Control.Concurrent (threadDelay) +-import Control.Monad ((>=>), forever, liftM, void) ++import Control.Monad ((>=>), forever, liftM) + import Data.Traversable (Traversable(..)) + import GHC.IO (unsafeUnmask) + import Prelude hiding (mapM) +@@ -180,11 +181,11 @@ waitCatch + waitCatch a = liftBase (A.waitCatch a) >>= sequenceEither + + -- | Generalized version of 'A.cancel'. +-cancel :: MonadBase IO m => Async (StM m a) -> m () ++cancel :: MonadBase IO m => Async a -> m () + cancel = liftBase . A.cancel + + -- | Generalized version of 'A.cancelWith'. +-cancelWith :: (MonadBase IO m, Exception e) => Async (StM m a) -> e -> m () ++cancelWith :: (MonadBase IO m, Exception e) => Async a -> e -> m () + cancelWith = (liftBase .) . A.cancelWith + + -- | Generalized version of 'A.waitAny'. +@@ -261,10 +262,10 @@ waitEitherCatchCancel a b = + -- | Generalized version of 'A.waitEither_'. + waitEither_ + :: MonadBaseControl IO m +- => Async (StM m a) +- -> Async (StM m b) ++ => Async a ++ -> Async b + -> m () +-waitEither_ = (void .) . waitEither ++waitEither_ a b = liftBase (A.waitEither_ a b) + + -- | Generalized version of 'A.waitBoth'. + waitBoth +@@ -280,11 +281,11 @@ waitBoth a b = do + {-# INLINABLE waitBoth #-} + + -- | Generalized version of 'A.link'. +-link :: MonadBase IO m => Async (StM m a) -> m () ++link :: MonadBase IO m => Async a -> m () + link = liftBase . A.link + + -- | Generalized version of 'A.link2'. +-link2 :: MonadBase IO m => Async (StM m a) -> Async (StM m b) -> m () ++link2 :: MonadBase IO m => Async a -> Async a -> m () + link2 = (liftBase .) . A.link2 + + -- | Generalized version of 'A.race'. diff --git a/dev-haskell/lifted-async/lifted-async-0.2.0.2-r1.ebuild b/dev-haskell/lifted-async/lifted-async-0.2.0.2-r1.ebuild new file mode 100644 index 000000000000..133ea7f5da81 --- /dev/null +++ b/dev-haskell/lifted-async/lifted-async-0.2.0.2-r1.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +# ebuild generated by hackport 0.4.3.9999 + +CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite" +inherit base haskell-cabal + +DESCRIPTION="Run lifted IO operations asynchronously and wait for their results" +HOMEPAGE="https://github.com/maoe/lifted-async" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~x86" +IUSE="" +RESTRICT="test" # patch has a test failure: withAsync waitEither : FAIL + +RDEPEND=">=dev-haskell/async-2.0.1:=[profile?] + >=dev-haskell/lifted-base-0.2:=[profile?] + >=dev-haskell/monad-control-0.3.1:=[profile?] + >=dev-haskell/transformers-base-0.4:=[profile?] + >=dev-lang/ghc-7.4.1:= +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.8 + test? ( dev-haskell/hunit + dev-haskell/mtl + dev-haskell/tasty + >=dev-haskell/tasty-hunit-0.9 <dev-haskell/tasty-hunit-0.10 + dev-haskell/tasty-th ) +" + +PATCHES=("${FILESDIR}/${PN}-0.2.0.2-monad-control-1.1.patch") diff --git a/dev-haskell/lifted-async/lifted-async-0.2.0.2.ebuild b/dev-haskell/lifted-async/lifted-async-0.2.0.2.ebuild new file mode 100644 index 000000000000..3d1c185be45d --- /dev/null +++ b/dev-haskell/lifted-async/lifted-async-0.2.0.2.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +# ebuild generated by hackport 0.4.3.9999 + +CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite" +inherit haskell-cabal + +DESCRIPTION="Run lifted IO operations asynchronously and wait for their results" +HOMEPAGE="https://github.com/maoe/lifted-async" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=">=dev-haskell/async-2.0.1:=[profile?] + >=dev-haskell/lifted-base-0.2:=[profile?] + >=dev-haskell/monad-control-0.3.1:=[profile?] + >=dev-haskell/transformers-base-0.4:=[profile?] + >=dev-lang/ghc-7.4.1:= +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.8 + test? ( dev-haskell/hunit + dev-haskell/mtl + dev-haskell/tasty + >=dev-haskell/tasty-hunit-0.9 <dev-haskell/tasty-hunit-0.10 + dev-haskell/tasty-th ) +" diff --git a/dev-haskell/lifted-async/lifted-async-0.2.0.ebuild b/dev-haskell/lifted-async/lifted-async-0.2.0.ebuild new file mode 100644 index 000000000000..43acee4199cc --- /dev/null +++ b/dev-haskell/lifted-async/lifted-async-0.2.0.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +# ebuild generated by hackport 0.4.9999 + +CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite" +inherit haskell-cabal + +DESCRIPTION="Run lifted IO operations asynchronously and wait for their results" +HOMEPAGE="https://github.com/maoe/lifted-async" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=">=dev-haskell/async-2.0.1:=[profile?] + >=dev-haskell/lifted-base-0.2:=[profile?] + >=dev-haskell/monad-control-0.3.1:=[profile?] + >=dev-haskell/transformers-base-0.4:=[profile?] + >=dev-lang/ghc-7.4.1:= +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.8 + test? ( dev-haskell/hunit + dev-haskell/mtl + dev-haskell/tasty + dev-haskell/tasty-hunit + dev-haskell/tasty-th ) +" diff --git a/dev-haskell/lifted-async/lifted-async-0.6.0.1.ebuild b/dev-haskell/lifted-async/lifted-async-0.6.0.1.ebuild new file mode 100644 index 000000000000..e2d815ae0ec0 --- /dev/null +++ b/dev-haskell/lifted-async/lifted-async-0.6.0.1.ebuild @@ -0,0 +1,41 @@ +# 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.3 + +CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite" +inherit haskell-cabal + +DESCRIPTION="Run lifted IO operations asynchronously and wait for their results" +HOMEPAGE="https://github.com/maoe/lifted-async" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~x86" +IUSE="+monad-control-1" + +RDEPEND=">=dev-haskell/async-2.0.1:=[profile?] <dev-haskell/async-2.1:=[profile?] + >=dev-haskell/lifted-base-0.2:=[profile?] <dev-haskell/lifted-base-0.3:=[profile?] + >=dev-haskell/transformers-base-0.4:=[profile?] <dev-haskell/transformers-base-0.5:=[profile?] + >=dev-lang/ghc-7.4.1:= + monad-control-1? ( >=dev-haskell/constraints-0.2:=[profile?] <dev-haskell/constraints-0.5:=[profile?] + >=dev-haskell/monad-control-1.0:=[profile?] <dev-haskell/monad-control-1.1:=[profile?] ) + !monad-control-1? ( >=dev-haskell/monad-control-0:=[profile?] <dev-haskell/monad-control-1:=[profile?] ) +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.8 + test? ( dev-haskell/hunit + dev-haskell/mtl + dev-haskell/tasty + >=dev-haskell/tasty-hunit-0.9 <dev-haskell/tasty-hunit-0.10 + dev-haskell/tasty-th ) +" + +src_configure() { + haskell-cabal_src_configure \ + $(cabal_flag monad-control-1 monad-control-1) +} diff --git a/dev-haskell/lifted-async/lifted-async-0.7.0.1.ebuild b/dev-haskell/lifted-async/lifted-async-0.7.0.1.ebuild new file mode 100644 index 000000000000..9bc8cf867d1d --- /dev/null +++ b/dev-haskell/lifted-async/lifted-async-0.7.0.1.ebuild @@ -0,0 +1,41 @@ +# 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.9999 + +CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite" +inherit haskell-cabal + +DESCRIPTION="Run lifted IO operations asynchronously and wait for their results" +HOMEPAGE="https://github.com/maoe/lifted-async" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~x86" +IUSE="+monad-control-1" + +RDEPEND=">=dev-haskell/async-2.0.1:=[profile?] <dev-haskell/async-2.1:=[profile?] + >=dev-haskell/lifted-base-0.2:=[profile?] <dev-haskell/lifted-base-0.3:=[profile?] + >=dev-haskell/transformers-base-0.4:=[profile?] <dev-haskell/transformers-base-0.5:=[profile?] + >=dev-lang/ghc-7.4.1:= + monad-control-1? ( >=dev-haskell/constraints-0.2:=[profile?] <dev-haskell/constraints-0.5:=[profile?] + >=dev-haskell/monad-control-1.0:=[profile?] <dev-haskell/monad-control-1.1:=[profile?] ) + !monad-control-1? ( >=dev-haskell/monad-control-0:=[profile?] <dev-haskell/monad-control-1:=[profile?] ) +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.8 + test? ( dev-haskell/hunit + dev-haskell/mtl + dev-haskell/tasty + >=dev-haskell/tasty-hunit-0.9 <dev-haskell/tasty-hunit-0.10 + dev-haskell/tasty-th ) +" + +src_configure() { + haskell-cabal_src_configure \ + $(cabal_flag monad-control-1 monad-control-1) +} diff --git a/dev-haskell/lifted-async/metadata.xml b/dev-haskell/lifted-async/metadata.xml new file mode 100644 index 000000000000..4f36f3f026d5 --- /dev/null +++ b/dev-haskell/lifted-async/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> + <longdescription> + This package provides IO operations from @async@ package lifted to any + instance of 'MonadBase' or 'MonadBaseControl'. + </longdescription> + <use> + <flag name="monad-control-1">Use moand-control == 1.*</flag> + </use> + <upstream> + <remote-id type="github">maoe/lifted-async</remote-id> + </upstream> +</pkgmetadata> |