diff options
author | pho <pho@pkgsrc.org> | 2020-01-01 02:29:19 +0000 |
---|---|---|
committer | pho <pho@pkgsrc.org> | 2020-01-01 02:29:19 +0000 |
commit | edb589ecb72240b2a0733fb801967d947524489f (patch) | |
tree | 0424248c75f853a83f544acec1e76e247bf31414 /math | |
parent | 91205b993f17f7b454b82270d3edbd11eed88ae7 (diff) | |
download | pkgsrc-edb589ecb72240b2a0733fb801967d947524489f.tar.gz |
Import contravariant-1.5.2 from wip
Contravariant functors, sometimes referred to colloquially as
cofunctor, even though the dual of a functor is just a functor. As
with functor the definition of contravariant for a given ADT is
unambiguous.
Diffstat (limited to 'math')
-rw-r--r-- | math/hs-contravariant/DESCR | 4 | ||||
-rw-r--r-- | math/hs-contravariant/Makefile | 14 | ||||
-rw-r--r-- | math/hs-contravariant/buildlink3.mk | 17 | ||||
-rw-r--r-- | math/hs-contravariant/distinfo | 6 |
4 files changed, 41 insertions, 0 deletions
diff --git a/math/hs-contravariant/DESCR b/math/hs-contravariant/DESCR new file mode 100644 index 00000000000..a586e0dd4f8 --- /dev/null +++ b/math/hs-contravariant/DESCR @@ -0,0 +1,4 @@ +Contravariant functors, sometimes referred to colloquially as +cofunctor, even though the dual of a functor is just a functor. As +with functor the definition of contravariant for a given ADT is +unambiguous. diff --git a/math/hs-contravariant/Makefile b/math/hs-contravariant/Makefile new file mode 100644 index 00000000000..f4eb2329746 --- /dev/null +++ b/math/hs-contravariant/Makefile @@ -0,0 +1,14 @@ +# $NetBSD: Makefile,v 1.1 2020/01/01 02:29:19 pho Exp $ + +DISTNAME= contravariant-1.5.2 +CATEGORIES= math + +MAINTAINER= pho@cielonegro.org +COMMENT= Contravariant functors +LICENSE= modified-bsd + +.include "../../mk/haskell.mk" +.include "../../devel/hs-transformers-compat/buildlink3.mk" +.include "../../math/hs-semigroups/buildlink3.mk" +.include "../../devel/hs-StateVar/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/math/hs-contravariant/buildlink3.mk b/math/hs-contravariant/buildlink3.mk new file mode 100644 index 00000000000..0342ac7d5fc --- /dev/null +++ b/math/hs-contravariant/buildlink3.mk @@ -0,0 +1,17 @@ +# $NetBSD: buildlink3.mk,v 1.1 2020/01/01 02:29:19 pho Exp $ + +BUILDLINK_TREE+= hs-contravariant + +.if !defined(HS_CONTRAVARIANT_BUILDLINK3_MK) +HS_CONTRAVARIANT_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.hs-contravariant+= hs-contravariant>=1.5.2 +BUILDLINK_ABI_DEPENDS.hs-contravariant+= hs-contravariant>=1.5.2 +BUILDLINK_PKGSRCDIR.hs-contravariant?= ../../math/hs-contravariant + +.include "../../devel/hs-transformers-compat/buildlink3.mk" +.include "../../math/hs-semigroups/buildlink3.mk" +.include "../../devel/hs-StateVar/buildlink3.mk" +.endif # HS_CONTRAVARIANT_BUILDLINK3_MK + +BUILDLINK_TREE+= -hs-contravariant diff --git a/math/hs-contravariant/distinfo b/math/hs-contravariant/distinfo new file mode 100644 index 00000000000..a6230bdd2d3 --- /dev/null +++ b/math/hs-contravariant/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2020/01/01 02:29:19 pho Exp $ + +SHA1 (contravariant-1.5.2.tar.gz) = 21782e04bd877921b13ba9cbf5a83132a6260bf8 +RMD160 (contravariant-1.5.2.tar.gz) = 142d8aa32515fe8db59c3ecde43b337c72343e75 +SHA512 (contravariant-1.5.2.tar.gz) = f59cfbb2c7b1dec7532c3ffb260b5788fc3fe160ad730c1b49ff85d57cc46c4af24e37ecc8cd46df112ff1e92b5b03f2064b81f8ccda88465e1fe695331f5410 +Size (contravariant-1.5.2.tar.gz) = 16006 bytes |