pkgsrc-Changes archive

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

CVS commit: pkgsrc/math/hs-bifunctors



Module Name:    pkgsrc
Committed By:   pho
Date:           Fri Jan  3 04:45:31 UTC 2020

Added Files:
        pkgsrc/math/hs-bifunctors: DESCR Makefile buildlink3.mk distinfo

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/math/hs-bifunctors/DESCR \
    pkgsrc/math/hs-bifunctors/Makefile \
    pkgsrc/math/hs-bifunctors/buildlink3.mk \
    pkgsrc/math/hs-bifunctors/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/math/hs-bifunctors/DESCR
diff -u /dev/null pkgsrc/math/hs-bifunctors/DESCR:1.1
--- /dev/null   Fri Jan  3 04:45:31 2020
+++ pkgsrc/math/hs-bifunctors/DESCR     Fri Jan  3 04:45:31 2020
@@ -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.
Index: pkgsrc/math/hs-bifunctors/Makefile
diff -u /dev/null pkgsrc/math/hs-bifunctors/Makefile:1.1
--- /dev/null   Fri Jan  3 04:45:31 2020
+++ pkgsrc/math/hs-bifunctors/Makefile  Fri Jan  3 04:45:31 2020
@@ -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"
Index: pkgsrc/math/hs-bifunctors/buildlink3.mk
diff -u /dev/null pkgsrc/math/hs-bifunctors/buildlink3.mk:1.1
--- /dev/null   Fri Jan  3 04:45:31 2020
+++ pkgsrc/math/hs-bifunctors/buildlink3.mk     Fri Jan  3 04:45:31 2020
@@ -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
Index: pkgsrc/math/hs-bifunctors/distinfo
diff -u /dev/null pkgsrc/math/hs-bifunctors/distinfo:1.1
--- /dev/null   Fri Jan  3 04:45:31 2020
+++ pkgsrc/math/hs-bifunctors/distinfo  Fri Jan  3 04:45:31 2020
@@ -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