The Resource transformer keeps track of all registered actions, and

calls them upon exit (via 'runResourceT'). Actions may be registered
via 'register', or resources may be allocated atomically via
'allocate'. allocate corresponds closely to bracket.

ok matthew, sthen.
This commit is contained in:
kili 2012-08-30 20:53:14 +00:00
parent f3e24282c0
commit 07d31c5364
4 changed files with 65 additions and 0 deletions

View File

@ -0,0 +1,28 @@
# $OpenBSD: Makefile,v 1.1.1.1 2012/08/30 20:53:14 kili Exp $
COMMENT = deterministic allocation and freeing of scarce resources
DISTNAME = resourcet-0.3.3.1
CATEGORIES = devel
MAINTAINER = Matthias Kilian <kili@openbsd.org>
# BSD3
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
MODULES = lang/ghc
MODGHC_BUILD = cabal hackage haddock register
BUILD_DEPENDS = ${RUN_DEPENDS}
RUN_DEPENDS = devel/hs-lifted-base>=0.1,<0.2 \
devel/hs-monad-control>=0.3.1,<0.4 \
devel/hs-mtl>=2.0,<2.2 \
devel/hs-transformers>=0.2.2,<0.4 \
devel/hs-transformers-base>=0.4.1,<0.5
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (ghc/resourcet-0.3.3.1.tar.gz) = gyzKuic6ZlkcQJfITXVcNQ==
RMD160 (ghc/resourcet-0.3.3.1.tar.gz) = kc0UZWrH+yadIIpWbtDZ+OuP2A0=
SHA1 (ghc/resourcet-0.3.3.1.tar.gz) = j2orUJPsrUgBW9hnvzKr5Tyt/o8=
SHA256 (ghc/resourcet-0.3.3.1.tar.gz) = tMnnZygqjUoR2EMLR6YAEoO1b6FNTVk+JzUOicAVmZg=
SIZE (ghc/resourcet-0.3.3.1.tar.gz) = 7357

View File

@ -0,0 +1,4 @@
The Resource transformer keeps track of all registered actions, and
calls them upon exit (via 'runResourceT'). Actions may be registered
via 'register', or resources may be allocated atomically via
'allocate'. allocate corresponds closely to bracket.

View File

@ -0,0 +1,28 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2012/08/30 20:53:14 kili Exp $
lib/ghc/${DISTNAME}/
lib/ghc/${DISTNAME}/Control/
lib/ghc/${DISTNAME}/Control/Monad/
lib/ghc/${DISTNAME}/Control/Monad/Trans/
lib/ghc/${DISTNAME}/Control/Monad/Trans/Resource.hi
lib/ghc/${DISTNAME}/HS${DISTNAME}.o
lib/ghc/${DISTNAME}/libHS${DISTNAME}.a
lib/ghc/${DISTNAME}/register.sh
@exec /usr/bin/env HOME=/nonexistent %D/lib/ghc/${DISTNAME}/register.sh -v0
@unexec /usr/bin/env HOME=/nonexistent %D/lib/ghc/${DISTNAME}/unregister.sh -v0 --force
lib/ghc/${DISTNAME}/unregister.sh
share/doc/hs-${DISTNAME}/
share/doc/hs-${DISTNAME}/LICENSE
share/doc/hs-${DISTNAME}/html/
share/doc/hs-${DISTNAME}/html/Control-Monad-Trans-Resource.html
share/doc/hs-${DISTNAME}/html/doc-index.html
share/doc/hs-${DISTNAME}/html/frames.html
share/doc/hs-${DISTNAME}/html/haddock-util.js
share/doc/hs-${DISTNAME}/html/hslogo-16.png
share/doc/hs-${DISTNAME}/html/index-frames.html
share/doc/hs-${DISTNAME}/html/index.html
share/doc/hs-${DISTNAME}/html/mini_Control-Monad-Trans-Resource.html
share/doc/hs-${DISTNAME}/html/minus.gif
share/doc/hs-${DISTNAME}/html/ocean.css
share/doc/hs-${DISTNAME}/html/plus.gif
share/doc/hs-${DISTNAME}/html/resourcet.haddock
share/doc/hs-${DISTNAME}/html/synopsis.png