summaryrefslogtreecommitdiff
path: root/math/hs-semigroupoids
diff options
context:
space:
mode:
authorpho <pho@pkgsrc.org>2020-01-03 05:15:10 +0000
committerpho <pho@pkgsrc.org>2020-01-03 05:15:10 +0000
commit3a8b1795704543b9e954e77e30973a6207f80120 (patch)
tree33d84ff17a7b87b157fcdd7ce31636be9c485e37 /math/hs-semigroupoids
parent74f139ddbc51be0f047d31f5f58d3ab0c0f8a814 (diff)
downloadpkgsrc-3a8b1795704543b9e954e77e30973a6207f80120.tar.gz
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 (limited to 'math/hs-semigroupoids')
-rw-r--r--math/hs-semigroupoids/DESCR18
-rw-r--r--math/hs-semigroupoids/Makefile21
-rw-r--r--math/hs-semigroupoids/buildlink3.mk24
-rw-r--r--math/hs-semigroupoids/distinfo6
4 files changed, 69 insertions, 0 deletions
diff --git a/math/hs-semigroupoids/DESCR b/math/hs-semigroupoids/DESCR
new file mode 100644
index 00000000000..0b8875a1c4c
--- /dev/null
+++ b/math/hs-semigroupoids/DESCR
@@ -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 --git a/math/hs-semigroupoids/Makefile b/math/hs-semigroupoids/Makefile
new file mode 100644
index 00000000000..e6609622e1a
--- /dev/null
+++ b/math/hs-semigroupoids/Makefile
@@ -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
+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 --git a/math/hs-semigroupoids/buildlink3.mk b/math/hs-semigroupoids/buildlink3.mk
new file mode 100644
index 00000000000..bce3d0a00aa
--- /dev/null
+++ b/math/hs-semigroupoids/buildlink3.mk
@@ -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 --git a/math/hs-semigroupoids/distinfo b/math/hs-semigroupoids/distinfo
new file mode 100644
index 00000000000..39633fbffc7
--- /dev/null
+++ b/math/hs-semigroupoids/distinfo
@@ -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