From 069d35a99d09dc26c158078bc94edfd9776efb65 Mon Sep 17 00:00:00 2001 From: kili Date: Wed, 31 Oct 2012 19:12:27 +0000 Subject: [PATCH] OneTuple fills the "tuple gap" with a singleton tuple. It does not support the usual parenthesized tuple syntax (which would be "(a)" instead of "OneTuple a"). It * has the expected laziness properties, * can be pattern-matched, * ships with instances for several standard type classes, including all those supported by H98-standard tuples, * requires no language extensions, except for hierarchical modules. ok jasper@ --- devel/hs-OneTuple/Makefile | 18 ++++++++++++++++++ devel/hs-OneTuple/distinfo | 2 ++ devel/hs-OneTuple/pkg/DESCR | 8 ++++++++ devel/hs-OneTuple/pkg/PLIST | 27 +++++++++++++++++++++++++++ 4 files changed, 55 insertions(+) create mode 100644 devel/hs-OneTuple/Makefile create mode 100644 devel/hs-OneTuple/distinfo create mode 100644 devel/hs-OneTuple/pkg/DESCR create mode 100644 devel/hs-OneTuple/pkg/PLIST diff --git a/devel/hs-OneTuple/Makefile b/devel/hs-OneTuple/Makefile new file mode 100644 index 00000000000..dda90ce5cac --- /dev/null +++ b/devel/hs-OneTuple/Makefile @@ -0,0 +1,18 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2012/10/31 19:12:27 kili Exp $ + +COMMENT = singleton tuple + +DISTNAME = OneTuple-0.2.1 +CATEGORIES = devel + +# 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 + +.include diff --git a/devel/hs-OneTuple/distinfo b/devel/hs-OneTuple/distinfo new file mode 100644 index 00000000000..17c421f8369 --- /dev/null +++ b/devel/hs-OneTuple/distinfo @@ -0,0 +1,2 @@ +SHA256 (ghc/OneTuple-0.2.1.tar.gz) = S290ttkt8RKw9OrxXM3F+7dj1Z8H6aKvpWkO+JFZovQ= +SIZE (ghc/OneTuple-0.2.1.tar.gz) = 2840 diff --git a/devel/hs-OneTuple/pkg/DESCR b/devel/hs-OneTuple/pkg/DESCR new file mode 100644 index 00000000000..5541cbc0d48 --- /dev/null +++ b/devel/hs-OneTuple/pkg/DESCR @@ -0,0 +1,8 @@ +OneTuple fills the "tuple gap" with a singleton tuple. It does +not support the usual parenthesized tuple syntax (which would be +"(a)" instead of "OneTuple a"). It +* has the expected laziness properties, +* can be pattern-matched, +* ships with instances for several standard type classes, + including all those supported by H98-standard tuples, +* requires no language extensions, except for hierarchical modules. diff --git a/devel/hs-OneTuple/pkg/PLIST b/devel/hs-OneTuple/pkg/PLIST new file mode 100644 index 00000000000..afede02a4e7 --- /dev/null +++ b/devel/hs-OneTuple/pkg/PLIST @@ -0,0 +1,27 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2012/10/31 19:12:27 kili Exp $ +lib/ghc/${DISTNAME}/ +lib/ghc/${DISTNAME}/Data/ +lib/ghc/${DISTNAME}/Data/Tuple/ +lib/ghc/${DISTNAME}/Data/Tuple/OneTuple.hi +lib/ghc/${DISTNAME}/HS${DISTNAME}.o +lib/ghc/${DISTNAME}/libHS${DISTNAME}.a +lib/ghc/${DISTNAME}/register.sh +share/doc/hs-${DISTNAME}/ +share/doc/hs-${DISTNAME}/LICENSE +share/doc/hs-${DISTNAME}/html/ +share/doc/hs-${DISTNAME}/html/Data-Tuple-OneTuple.html +share/doc/hs-${DISTNAME}/html/OneTuple.haddock +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_Data-Tuple-OneTuple.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/synopsis.png +@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