pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/math/hs-semigroupoids Import semigroupoids-5.3.4 from wip
details: https://anonhg.NetBSD.org/pkgsrc/rev/0ba97b5de899
branches: trunk
changeset: 407269:0ba97b5de899
user: pho <pho%pkgsrc.org@localhost>
date: Fri Jan 03 05:15:10 2020 +0000
description:
Import semigroupoids-5.3.4 from wip
Provides a wide array of (semi)groupoids and operations for working with them.
A Semigroupoid is a Category without the requirement of identity arrows
for every object in the category.
A Category is any Semigroupoid for which the Yoneda lemma holds.
When working with comonads you often have the <*> portion of an Applicative,
but not the pure. This was captured in Uustalu and Vene's
"Essence of Dataflow Programming" in the form of the ComonadZip class
in the days before Applicative. Apply provides a weaker invariant,
but for the comonads used for data flow programming
(found in the streams package), this invariant is preserved.
Applicative function composition forms a semigroupoid.
Similarly many structures are nearly a comonad, but not quite,
for instance lists provide a reasonable extend operation in the form of tails,
but do not always contain a value.
diffstat:
math/hs-semigroupoids/DESCR | 18 ++++++++++++++++++
math/hs-semigroupoids/Makefile | 21 +++++++++++++++++++++
math/hs-semigroupoids/buildlink3.mk | 24 ++++++++++++++++++++++++
math/hs-semigroupoids/distinfo | 6 ++++++
4 files changed, 69 insertions(+), 0 deletions(-)
diffs (85 lines):
diff -r 24539b0082c3 -r 0ba97b5de899 math/hs-semigroupoids/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/math/hs-semigroupoids/DESCR Fri Jan 03 05:15:10 2020 +0000
@@ -0,0 +1,18 @@
+Provides a wide array of (semi)groupoids and operations for working with them.
+
+A Semigroupoid is a Category without the requirement of identity arrows
+for every object in the category.
+
+A Category is any Semigroupoid for which the Yoneda lemma holds.
+
+When working with comonads you often have the <*> portion of an Applicative,
+but not the pure. This was captured in Uustalu and Vene's
+"Essence of Dataflow Programming" in the form of the ComonadZip class
+in the days before Applicative. Apply provides a weaker invariant,
+but for the comonads used for data flow programming
+(found in the streams package), this invariant is preserved.
+Applicative function composition forms a semigroupoid.
+
+Similarly many structures are nearly a comonad, but not quite,
+for instance lists provide a reasonable extend operation in the form of tails,
+but do not always contain a value.
diff -r 24539b0082c3 -r 0ba97b5de899 math/hs-semigroupoids/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/math/hs-semigroupoids/Makefile Fri Jan 03 05:15:10 2020 +0000
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1 2020/01/03 05:15:10 pho Exp $
+
+DISTNAME= semigroupoids-5.3.4
+CATEGORIES= math
+
+MAINTAINER= pho%cielonegro.org@localhost
+COMMENT= Semigroupoids: Category sans id
+LICENSE= modified-bsd
+
+.include "../../mk/haskell.mk"
+.include "../../devel/hs-base-orphans/buildlink3.mk"
+.include "../../math/hs-bifunctors/buildlink3.mk"
+.include "../../devel/hs-transformers-compat/buildlink3.mk"
+.include "../../math/hs-semigroups/buildlink3.mk"
+.include "../../math/hs-contravariant/buildlink3.mk"
+.include "../../math/hs-distributive/buildlink3.mk"
+.include "../../math/hs-comonad/buildlink3.mk"
+.include "../../devel/hs-tagged/buildlink3.mk"
+.include "../../devel/hs-hashable/buildlink3.mk"
+.include "../../devel/hs-unordered-containers/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 24539b0082c3 -r 0ba97b5de899 math/hs-semigroupoids/buildlink3.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/math/hs-semigroupoids/buildlink3.mk Fri Jan 03 05:15:10 2020 +0000
@@ -0,0 +1,24 @@
+# $NetBSD: buildlink3.mk,v 1.1 2020/01/03 05:15:10 pho Exp $
+
+BUILDLINK_TREE+= hs-semigroupoids
+
+.if !defined(HS_SEMIGROUPOIDS_BUILDLINK3_MK)
+HS_SEMIGROUPOIDS_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.hs-semigroupoids+= hs-semigroupoids>=5.3.4
+BUILDLINK_ABI_DEPENDS.hs-semigroupoids+= hs-semigroupoids>=5.3.4
+BUILDLINK_PKGSRCDIR.hs-semigroupoids?= ../../math/hs-semigroupoids
+
+.include "../../devel/hs-base-orphans/buildlink3.mk"
+.include "../../math/hs-bifunctors/buildlink3.mk"
+.include "../../devel/hs-transformers-compat/buildlink3.mk"
+.include "../../math/hs-semigroups/buildlink3.mk"
+.include "../../math/hs-contravariant/buildlink3.mk"
+.include "../../math/hs-distributive/buildlink3.mk"
+.include "../../math/hs-comonad/buildlink3.mk"
+.include "../../devel/hs-tagged/buildlink3.mk"
+.include "../../devel/hs-hashable/buildlink3.mk"
+.include "../../devel/hs-unordered-containers/buildlink3.mk"
+.endif # HS_SEMIGROUPOIDS_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -hs-semigroupoids
diff -r 24539b0082c3 -r 0ba97b5de899 math/hs-semigroupoids/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/math/hs-semigroupoids/distinfo Fri Jan 03 05:15:10 2020 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/01/03 05:15:10 pho Exp $
+
+SHA1 (semigroupoids-5.3.4.tar.gz) = 18340c81e2895e44ed028fc7e8217ebd60a201f5
+RMD160 (semigroupoids-5.3.4.tar.gz) = f21dd91241a6c9b79ae8d82f7c941814f4e25967
+SHA512 (semigroupoids-5.3.4.tar.gz) = b4053a856e1c2d3f20f984216f008ff264cedd2ccc3cc39ca3b70bc296d81ea8c1e6dd655bb8a6d1b9a44084e02d74a26cd4eb7264e4732e98be3ec351dc6e3a
+Size (semigroupoids-5.3.4.tar.gz) = 26307 bytes
Home |
Main Index |
Thread Index |
Old Index