Import hs-monad-control-0.2.0.1 as wip/hs-monad-control.

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.
This commit is contained in:
PHO / phonohawk 2011-05-10 12:56:48 +00:00 committed by Thomas Klausner
parent e66ea091dd
commit 2ce7cf0567
5 changed files with 58 additions and 0 deletions

12
hs-monad-control/DESCR Normal file
View file

@ -0,0 +1,12 @@
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.

14
hs-monad-control/Makefile Normal file
View file

@ -0,0 +1,14 @@
# $NetBSD: Makefile,v 1.1.1.1 2011/05/10 12:56:48 phonohawk Exp $
#
DISTNAME= monad-control-0.2.0.1
CATEGORIES= devel
MAINTAINER= pho@cielonegro.org
COMMENT= Lift control operations through monad transformers
LICENSE= modified-bsd
.include "../../wip/mk/haskell.mk"
.include "../../wip/hs-base-unicode-symbols/buildlink3.mk"
.include "../../wip/hs-transformers/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

12
hs-monad-control/PLIST Normal file
View file

@ -0,0 +1,12 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2011/05/10 12:56:48 phonohawk Exp $
lib/monad-control-${PKGVERSION}/${HASKELL_VERSION}/Control/Exception/Control.hi
lib/monad-control-${PKGVERSION}/${HASKELL_VERSION}/Control/Exception/Control.p_hi
lib/monad-control-${PKGVERSION}/${HASKELL_VERSION}/Control/Monad/IO/Control.hi
lib/monad-control-${PKGVERSION}/${HASKELL_VERSION}/Control/Monad/IO/Control.p_hi
lib/monad-control-${PKGVERSION}/${HASKELL_VERSION}/Control/Monad/Trans/Control.hi
lib/monad-control-${PKGVERSION}/${HASKELL_VERSION}/Control/Monad/Trans/Control.p_hi
lib/monad-control-${PKGVERSION}/${HASKELL_VERSION}/HSmonad-control-${PKGVERSION}.o
lib/monad-control-${PKGVERSION}/${HASKELL_VERSION}/libHSmonad-control-${PKGVERSION}.a
lib/monad-control-${PKGVERSION}/${HASKELL_VERSION}/libHSmonad-control-${PKGVERSION}_p.a
lib/monad-control-${PKGVERSION}/${HASKELL_VERSION}/package-description
share/doc/monad-control-${PKGVERSION}/LICENSE

View file

@ -0,0 +1,15 @@
# $NetBSD: buildlink3.mk,v 1.1.1.1 2011/05/10 12:56:48 phonohawk Exp $
BUILDLINK_TREE+= hs-monad-control
.if !defined(HS_MONAD_CONTROL_BUILDLINK3_MK)
HS_MONAD_CONTROL_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.hs-monad-control+= hs-monad-control>=0.2
BUILDLINK_PKGSRCDIR.hs-monad-control?= ../../wip/hs-monad-control
.include "../../wip/hs-base-unicode-symbols/buildlink3.mk"
.include "../../wip/hs-transformers/buildlink3.mk"
.endif # HS_MONAD_CONTROL_BUILDLINK3_MK
BUILDLINK_TREE+= -hs-monad-control

View file

@ -0,0 +1,5 @@
$NetBSD: distinfo,v 1.1.1.1 2011/05/10 12:56:48 phonohawk Exp $
SHA1 (monad-control-0.2.0.1.tar.gz) = c9ce069dbf69670345a9217ce446aaa53231a896
RMD160 (monad-control-0.2.0.1.tar.gz) = e80ba450f92448cd41772552aaf7280bdff87ea8
Size (monad-control-0.2.0.1.tar.gz) = 9598 bytes