pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/hs-managed devel/hs-managed: import hs-managed-1...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0e844d28151e
branches:  trunk
changeset: 374654:0e844d28151e
user:      pho <pho%pkgsrc.org@localhost>
date:      Thu Feb 24 01:19:09 2022 +0000

description:
devel/hs-managed: import hs-managed-1.0.9

In Haskell you very often acquire values using the with... idiom using
functions of type (a -> IO r) -> IO r. This idiom forms a Monad, which is a
special case of the ContT monad (from transformers) or the Codensity monad
(from kan-extensions). The main purpose behind this package is to provide a
restricted form of these monads specialized to this unusually common case.

The reason this package defines a specialized version of these types is to:
* be more beginner-friendly,
* simplify inferred types and error messages, and:
* provide some additional type class instances that would otherwise be
  orphan instances

diffstat:

 devel/hs-managed/DESCR         |  11 +++++++++++
 devel/hs-managed/Makefile      |  11 +++++++++++
 devel/hs-managed/PLIST         |  23 +++++++++++++++++++++++
 devel/hs-managed/buildlink3.mk |  13 +++++++++++++
 devel/hs-managed/distinfo      |   5 +++++
 5 files changed, 63 insertions(+), 0 deletions(-)

diffs (83 lines):

diff -r ee8d73773236 -r 0e844d28151e devel/hs-managed/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-managed/DESCR    Thu Feb 24 01:19:09 2022 +0000
@@ -0,0 +1,11 @@
+In Haskell you very often acquire values using the with... idiom using
+functions of type (a -> IO r) -> IO r. This idiom forms a Monad, which is a
+special case of the ContT monad (from transformers) or the Codensity monad
+(from kan-extensions). The main purpose behind this package is to provide a
+restricted form of these monads specialized to this unusually common case.
+
+The reason this package defines a specialized version of these types is to:
+* be more beginner-friendly,
+* simplify inferred types and error messages, and:
+* provide some additional type class instances that would otherwise be
+  orphan instances
diff -r ee8d73773236 -r 0e844d28151e devel/hs-managed/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-managed/Makefile Thu Feb 24 01:19:09 2022 +0000
@@ -0,0 +1,11 @@
+# $NetBSD: Makefile,v 1.1 2022/02/24 01:19:09 pho Exp $
+
+DISTNAME=      managed-1.0.9
+CATEGORIES=    devel
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+COMMENT=       Monad for managed values
+LICENSE=       modified-bsd
+
+.include "../../mk/haskell.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r ee8d73773236 -r 0e844d28151e devel/hs-managed/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-managed/PLIST    Thu Feb 24 01:19:09 2022 +0000
@@ -0,0 +1,23 @@
+@comment $NetBSD: PLIST,v 1.1 2022/02/24 01:19:09 pho Exp $
+lib/managed-${PKGVERSION}/${HS_VERSION}/package-description
+lib/managed-${PKGVERSION}/${HS_VERSION}/package-id
+lib/${HS_PLATFORM}/libHS${HS_PKGID}-${HS_VER}.so
+lib/${HS_PLATFORM}/${HS_PKGID}/Control/Monad/Managed.dyn_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Control/Monad/Managed.hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Control/Monad/Managed.p_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Control/Monad/Managed/Safe.dyn_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Control/Monad/Managed/Safe.hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Control/Monad/Managed/Safe.p_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/libHS${HS_PKGID}.a
+lib/${HS_PLATFORM}/${HS_PKGID}/libHS${HS_PKGID}_p.a
+share/doc/${HS_PLATFORM}/managed-${PKGVERSION}/LICENSE
+share/doc/${HS_PLATFORM}/managed-${PKGVERSION}/html/Control-Monad-Managed-Safe.html
+share/doc/${HS_PLATFORM}/managed-${PKGVERSION}/html/Control-Monad-Managed.html
+share/doc/${HS_PLATFORM}/managed-${PKGVERSION}/html/doc-index.html
+share/doc/${HS_PLATFORM}/managed-${PKGVERSION}/html/haddock-bundle.min.js
+share/doc/${HS_PLATFORM}/managed-${PKGVERSION}/html/index.html
+share/doc/${HS_PLATFORM}/managed-${PKGVERSION}/html/linuwial.css
+share/doc/${HS_PLATFORM}/managed-${PKGVERSION}/html/managed.haddock
+share/doc/${HS_PLATFORM}/managed-${PKGVERSION}/html/meta.json
+share/doc/${HS_PLATFORM}/managed-${PKGVERSION}/html/quick-jump.css
+share/doc/${HS_PLATFORM}/managed-${PKGVERSION}/html/synopsis.png
diff -r ee8d73773236 -r 0e844d28151e devel/hs-managed/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-managed/buildlink3.mk    Thu Feb 24 01:19:09 2022 +0000
@@ -0,0 +1,13 @@
+# $NetBSD: buildlink3.mk,v 1.1 2022/02/24 01:19:09 pho Exp $
+
+BUILDLINK_TREE+=       hs-managed
+
+.if !defined(HS_MANAGED_BUILDLINK3_MK)
+HS_MANAGED_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.hs-managed+=     hs-managed>=1.0.9
+BUILDLINK_ABI_DEPENDS.hs-managed+=     hs-managed>=1.0.9
+BUILDLINK_PKGSRCDIR.hs-managed?=       ../../devel/hs-managed
+.endif # HS_MANAGED_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -hs-managed
diff -r ee8d73773236 -r 0e844d28151e devel/hs-managed/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-managed/distinfo Thu Feb 24 01:19:09 2022 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2022/02/24 01:19:09 pho Exp $
+
+BLAKE2s (managed-1.0.9.tar.gz) = b6eeadf2fca785d89cb54a8d6be832d4b19f6ca34cd891b1f2e2a963ffda62f0
+SHA512 (managed-1.0.9.tar.gz) = bba21e18a81fdabfaca7517930c0f186a8a0dfac3b9ba3743b247606df61e2eb803ca0811f31f5936d96fb373def6ff566632d06c235ebc4ca7c5b6f52c0836e
+Size (managed-1.0.9.tar.gz) = 5142 bytes



Home | Main Index | Thread Index | Old Index