Import hs-fclabels-0.11.1.1 as wip/hs-fclabels.

First class labels that act as bidirectional record fields.

The labels are implemented as lenses and are fully composable and can
be used to get, set and modify parts of a datatype in a consistent
way. The lens datatype, conveniently called `:->', is an instance of
the Category type class: meaning it has a proper identity and
composition. The library has support for automatically deriving labels
from record selectors that start with an underscore. Labels can be
used in a purely functional setting or be applied to mutable state in
some state monad.
This commit is contained in:
PHO / phonohawk 2011-07-12 05:06:10 +00:00 committed by Thomas Klausner
parent e97f87b647
commit 086168b27f
5 changed files with 56 additions and 0 deletions

10
hs-fclabels/DESCR Normal file
View file

@ -0,0 +1,10 @@
First class labels that act as bidirectional record fields.
The labels are implemented as lenses and are fully composable and can
be used to get, set and modify parts of a datatype in a consistent
way. The lens datatype, conveniently called `:->', is an instance of
the Category type class: meaning it has a proper identity and
composition. The library has support for automatically deriving labels
from record selectors that start with an underscore. Labels can be
used in a purely functional setting or be applied to mutable state in
some state monad.

13
hs-fclabels/Makefile Normal file
View file

@ -0,0 +1,13 @@
# $NetBSD: Makefile,v 1.1.1.1 2011/07/12 05:06:10 phonohawk Exp $
#
DISTNAME= fclabels-0.11.1.1
CATEGORIES= devel
MAINTAINER= pho@cielonegro.org
COMMENT= First class accessor labels implemented as lenses
LICENSE= modified-bsd
.include "../../wip/mk/haskell.mk"
.include "../../wip/hs-mtl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

14
hs-fclabels/PLIST Normal file
View file

@ -0,0 +1,14 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2011/07/12 05:06:10 phonohawk Exp $
lib/fclabels-${PKGVERSION}/${HASKELL_VERSION}/Data/Record/Label.hi
lib/fclabels-${PKGVERSION}/${HASKELL_VERSION}/Data/Record/Label.p_hi
lib/fclabels-${PKGVERSION}/${HASKELL_VERSION}/Data/Record/Label/Core.hi
lib/fclabels-${PKGVERSION}/${HASKELL_VERSION}/Data/Record/Label/Core.p_hi
lib/fclabels-${PKGVERSION}/${HASKELL_VERSION}/Data/Record/Label/Monadic.hi
lib/fclabels-${PKGVERSION}/${HASKELL_VERSION}/Data/Record/Label/Monadic.p_hi
lib/fclabels-${PKGVERSION}/${HASKELL_VERSION}/Data/Record/Label/TH.hi
lib/fclabels-${PKGVERSION}/${HASKELL_VERSION}/Data/Record/Label/TH.p_hi
lib/fclabels-${PKGVERSION}/${HASKELL_VERSION}/HSfclabels-${PKGVERSION}.o
lib/fclabels-${PKGVERSION}/${HASKELL_VERSION}/libHSfclabels-${PKGVERSION}.a
lib/fclabels-${PKGVERSION}/${HASKELL_VERSION}/libHSfclabels-${PKGVERSION}_p.a
lib/fclabels-${PKGVERSION}/${HASKELL_VERSION}/package-description
share/doc/fclabels-${PKGVERSION}/LICENCE

14
hs-fclabels/buildlink3.mk Normal file
View file

@ -0,0 +1,14 @@
# $NetBSD: buildlink3.mk,v 1.1.1.1 2011/07/12 05:06:10 phonohawk Exp $
BUILDLINK_TREE+= hs-fclabels
.if !defined(HS_FCLABELS_BUILDLINK3_MK)
HS_FCLABELS_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.hs-fclabels+= hs-fclabels>=0.11
BUILDLINK_PKGSRCDIR.hs-fclabels?= ../../wip/hs-fclabels
.include "../../wip/hs-mtl/buildlink3.mk"
.endif # HS_FCLABELS_BUILDLINK3_MK
BUILDLINK_TREE+= -hs-fclabels

5
hs-fclabels/distinfo Normal file
View file

@ -0,0 +1,5 @@
$NetBSD: distinfo,v 1.1.1.1 2011/07/12 05:06:10 phonohawk Exp $
SHA1 (fclabels-0.11.1.1.tar.gz) = 5dc0a2b22c4676a5e02c7a1c483f8dad8a00f669
RMD160 (fclabels-0.11.1.1.tar.gz) = 747b264a7129c60aba10365c92f2cdf315bd956d
Size (fclabels-0.11.1.1.tar.gz) = 5921 bytes