pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/math/hs-bifunctors Import bifunctors-5.5.6 from wip



details:   https://anonhg.NetBSD.org/pkgsrc/rev/41524a1a6c8c
branches:  trunk
changeset: 346749:41524a1a6c8c
user:      pho <pho%pkgsrc.org@localhost>
date:      Fri Jan 03 04:45:31 2020 +0000

description:
Import bifunctors-5.5.6 from wip

A bifunctor is a type constructor that takes two type arguments and is
a functor in both arguments. That is, unlike with Functor, a type
constructor such as Either does not need to be partially applied for a
Bifunctor instance, and the methods in this class permit mapping
functions over the Left value or the Right value, or both at the same
time.

Formally, the class Bifunctor represents a bifunctor from Hask ->
Hask.

Intuitively it is a bifunctor where both the first and second
arguments are covariant.

You can define a Bifunctor by either defining bimap or by defining
both first and second.

diffstat:

 math/hs-bifunctors/DESCR         |  15 +++++++++++++++
 math/hs-bifunctors/Makefile      |  17 +++++++++++++++++
 math/hs-bifunctors/buildlink3.mk |  20 ++++++++++++++++++++
 math/hs-bifunctors/distinfo      |   6 ++++++
 4 files changed, 58 insertions(+), 0 deletions(-)

diffs (74 lines):

diff -r 1a201a1fe85e -r 41524a1a6c8c math/hs-bifunctors/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/hs-bifunctors/DESCR  Fri Jan 03 04:45:31 2020 +0000
@@ -0,0 +1,15 @@
+A bifunctor is a type constructor that takes two type arguments and is
+a functor in both arguments. That is, unlike with Functor, a type
+constructor such as Either does not need to be partially applied for a
+Bifunctor instance, and the methods in this class permit mapping
+functions over the Left value or the Right value, or both at the same
+time.
+
+Formally, the class Bifunctor represents a bifunctor from Hask ->
+Hask.
+
+Intuitively it is a bifunctor where both the first and second
+arguments are covariant.
+
+You can define a Bifunctor by either defining bimap or by defining
+both first and second.
diff -r 1a201a1fe85e -r 41524a1a6c8c math/hs-bifunctors/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/hs-bifunctors/Makefile       Fri Jan 03 04:45:31 2020 +0000
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1 2020/01/03 04:45:31 pho Exp $
+
+DISTNAME=      bifunctors-5.5.6
+CATEGORIES=    math
+
+MAINTAINER=    szptvlfn%NetBSD.org@localhost
+COMMENT=       Bifunctors
+LICENSE=       2-clause-bsd
+
+.include "../../mk/haskell.mk"
+.include "../../devel/hs-base-orphans/buildlink3.mk"
+.include "../../math/hs-comonad/buildlink3.mk"
+.include "../../devel/hs-th-abstraction/buildlink3.mk"
+.include "../../devel/hs-transformers-compat/buildlink3.mk"
+.include "../../devel/hs-tagged/buildlink3.mk"
+.include "../../math/hs-semigroups/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 1a201a1fe85e -r 41524a1a6c8c math/hs-bifunctors/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/hs-bifunctors/buildlink3.mk  Fri Jan 03 04:45:31 2020 +0000
@@ -0,0 +1,20 @@
+# $NetBSD: buildlink3.mk,v 1.1 2020/01/03 04:45:31 pho Exp $
+
+BUILDLINK_TREE+=       hs-bifunctors
+
+.if !defined(HS_BIFUNCTORS_BUILDLINK3_MK)
+HS_BIFUNCTORS_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.hs-bifunctors+=  hs-bifunctors>=5.5.6
+BUILDLINK_ABI_DEPENDS.hs-bifunctors+=  hs-bifunctors>=5.5.6
+BUILDLINK_PKGSRCDIR.hs-bifunctors?=    ../../math/hs-bifunctors
+
+.include "../../devel/hs-base-orphans/buildlink3.mk"
+.include "../../math/hs-comonad/buildlink3.mk"
+.include "../../devel/hs-th-abstraction/buildlink3.mk"
+.include "../../devel/hs-transformers-compat/buildlink3.mk"
+.include "../../devel/hs-tagged/buildlink3.mk"
+.include "../../math/hs-semigroups/buildlink3.mk"
+.endif # HS_BIFUNCTORS_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -hs-bifunctors
diff -r 1a201a1fe85e -r 41524a1a6c8c math/hs-bifunctors/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/hs-bifunctors/distinfo       Fri Jan 03 04:45:31 2020 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/01/03 04:45:31 pho Exp $
+
+SHA1 (bifunctors-5.5.6.tar.gz) = e69258273335874c755c95784790309455124402
+RMD160 (bifunctors-5.5.6.tar.gz) = 1f119cd4de7bbec44f353cd420b7b739208389dd
+SHA512 (bifunctors-5.5.6.tar.gz) = d78471bdf9c83c77d49825321984964e165c77ee4f02f8c4232ce272246057b0064b68553f8d70a11a930fc771dc55a2991ff63d6d7af89bb749f23737ba6a5b
+Size (bifunctors-5.5.6.tar.gz) = 44721 bytes



Home | Main Index | Thread Index | Old Index