pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/hs-retry devel/hs-retry: import hs-retry-0.9.1.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/660f5c8a3d37
branches:  trunk
changeset: 374615:660f5c8a3d37
user:      pho <pho%pkgsrc.org@localhost>
date:      Thu Feb 24 01:01:42 2022 +0000

description:
devel/hs-retry: import hs-retry-0.9.1.0

This package exposes combinators that can wrap arbitrary monadic
actions. They run the action and potentially retry running it with some
configurable delay for a configurable number of times. The purpose is to
make it easier to work with IO and especially network IO actions that often
experience temporary failure and warrant retrying of the original
action. For example, a database query may time out for a while, in which
case we should hang back for a bit and retry the query instead of simply
raising an exception.

diffstat:

 devel/hs-retry/DESCR         |   8 ++++++++
 devel/hs-retry/Makefile      |  12 ++++++++++++
 devel/hs-retry/PLIST         |  19 +++++++++++++++++++
 devel/hs-retry/buildlink3.mk |  15 +++++++++++++++
 devel/hs-retry/distinfo      |   5 +++++
 5 files changed, 59 insertions(+), 0 deletions(-)

diffs (79 lines):

diff -r deae6f16eda7 -r 660f5c8a3d37 devel/hs-retry/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-retry/DESCR      Thu Feb 24 01:01:42 2022 +0000
@@ -0,0 +1,8 @@
+This package exposes combinators that can wrap arbitrary monadic
+actions. They run the action and potentially retry running it with some
+configurable delay for a configurable number of times. The purpose is to
+make it easier to work with IO and especially network IO actions that often
+experience temporary failure and warrant retrying of the original
+action. For example, a database query may time out for a while, in which
+case we should hang back for a bit and retry the query instead of simply
+raising an exception.
diff -r deae6f16eda7 -r 660f5c8a3d37 devel/hs-retry/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-retry/Makefile   Thu Feb 24 01:01:42 2022 +0000
@@ -0,0 +1,12 @@
+# $NetBSD: Makefile,v 1.1 2022/02/24 01:01:42 pho Exp $
+
+DISTNAME=      retry-0.9.1.0
+CATEGORIES=    devel
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+COMMENT=       Retry combinators for monadic actions that may fail
+LICENSE=       modified-bsd
+
+.include "../../devel/hs-random/buildlink3.mk"
+.include "../../mk/haskell.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r deae6f16eda7 -r 660f5c8a3d37 devel/hs-retry/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-retry/PLIST      Thu Feb 24 01:01:42 2022 +0000
@@ -0,0 +1,19 @@
+@comment $NetBSD: PLIST,v 1.1 2022/02/24 01:01:42 pho Exp $
+lib/retry-${PKGVERSION}/${HS_VERSION}/package-description
+lib/retry-${PKGVERSION}/${HS_VERSION}/package-id
+lib/${HS_PLATFORM}/libHS${HS_PKGID}-${HS_VER}.so
+lib/${HS_PLATFORM}/${HS_PKGID}/Control/Retry.dyn_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Control/Retry.hi
+lib/${HS_PLATFORM}/${HS_PKGID}/Control/Retry.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}/retry-${PKGVERSION}/LICENSE
+share/doc/${HS_PLATFORM}/retry-${PKGVERSION}/html/Control-Retry.html
+share/doc/${HS_PLATFORM}/retry-${PKGVERSION}/html/doc-index.html
+share/doc/${HS_PLATFORM}/retry-${PKGVERSION}/html/haddock-bundle.min.js
+share/doc/${HS_PLATFORM}/retry-${PKGVERSION}/html/index.html
+share/doc/${HS_PLATFORM}/retry-${PKGVERSION}/html/linuwial.css
+share/doc/${HS_PLATFORM}/retry-${PKGVERSION}/html/meta.json
+share/doc/${HS_PLATFORM}/retry-${PKGVERSION}/html/quick-jump.css
+share/doc/${HS_PLATFORM}/retry-${PKGVERSION}/html/retry.haddock
+share/doc/${HS_PLATFORM}/retry-${PKGVERSION}/html/synopsis.png
diff -r deae6f16eda7 -r 660f5c8a3d37 devel/hs-retry/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-retry/buildlink3.mk      Thu Feb 24 01:01:42 2022 +0000
@@ -0,0 +1,15 @@
+# $NetBSD: buildlink3.mk,v 1.1 2022/02/24 01:01:42 pho Exp $
+
+BUILDLINK_TREE+=       hs-retry
+
+.if !defined(HS_RETRY_BUILDLINK3_MK)
+HS_RETRY_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.hs-retry+=       hs-retry>=0.9.1
+BUILDLINK_ABI_DEPENDS.hs-retry+=       hs-retry>=0.9.1.0
+BUILDLINK_PKGSRCDIR.hs-retry?=         ../../devel/hs-retry
+
+.include "../../devel/hs-random/buildlink3.mk"
+.endif # HS_RETRY_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -hs-retry
diff -r deae6f16eda7 -r 660f5c8a3d37 devel/hs-retry/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-retry/distinfo   Thu Feb 24 01:01:42 2022 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2022/02/24 01:01:42 pho Exp $
+
+BLAKE2s (retry-0.9.1.0.tar.gz) = 379a07486cb5b9b3d557921ff02a6257be2a5e18334746338bf67c6dab125c4b
+SHA512 (retry-0.9.1.0.tar.gz) = 6bf145f3ca6a619439b24b4c1420f97a910e91d8b93811f68ee28d6fbac6a6c5ac18974827e77ddebe2d4182d3c6ad67f2c54b7be7f6ede5700c81873fe2ff78
+Size (retry-0.9.1.0.tar.gz) = 16919 bytes



Home | Main Index | Thread Index | Old Index