pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/hs-mtl-compat devel/hs-mtl-compat: import hs-mtl...
details: https://anonhg.NetBSD.org/pkgsrc/rev/d87d2bcaafcb
branches: trunk
changeset: 374527:d87d2bcaafcb
user: pho <pho%pkgsrc.org@localhost>
date: Wed Feb 23 16:17:41 2022 +0000
description:
devel/hs-mtl-compat: import hs-mtl-compat-0.2.2
This package backports the Control.Monad.Except module from mtl (if using
mtl-2.2.0.1 or earlier), which reexports the ExceptT monad transformer and
the MonadError class.
This package should only be used if there is a need to use the
Control.Monad.Except module specifically. If you just want the mtl class
instances for ExceptT, use transformers-compat instead, since mtl-compat
does nothing but reexport the instances from that package.
Note that unlike how mtl-2.2 or later works, the Control.Monad.Except
module defined in this package exports all of ExceptT's monad class
instances. Therefore, you may have to declare import Control.Monad.Except
() at the top of your file to get all of the ExceptT instances in scope.
diffstat:
devel/hs-mtl-compat/DESCR | 13 +++++++++++++
devel/hs-mtl-compat/Makefile | 11 +++++++++++
devel/hs-mtl-compat/PLIST | 4 ++++
devel/hs-mtl-compat/buildlink3.mk | 13 +++++++++++++
devel/hs-mtl-compat/distinfo | 5 +++++
5 files changed, 46 insertions(+), 0 deletions(-)
diffs (66 lines):
diff -r f8666d03cbd6 -r d87d2bcaafcb devel/hs-mtl-compat/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-mtl-compat/DESCR Wed Feb 23 16:17:41 2022 +0000
@@ -0,0 +1,13 @@
+This package backports the Control.Monad.Except module from mtl (if using
+mtl-2.2.0.1 or earlier), which reexports the ExceptT monad transformer and
+the MonadError class.
+
+This package should only be used if there is a need to use the
+Control.Monad.Except module specifically. If you just want the mtl class
+instances for ExceptT, use transformers-compat instead, since mtl-compat
+does nothing but reexport the instances from that package.
+
+Note that unlike how mtl-2.2 or later works, the Control.Monad.Except
+module defined in this package exports all of ExceptT's monad class
+instances. Therefore, you may have to declare import Control.Monad.Except
+() at the top of your file to get all of the ExceptT instances in scope.
diff -r f8666d03cbd6 -r d87d2bcaafcb devel/hs-mtl-compat/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-mtl-compat/Makefile Wed Feb 23 16:17:41 2022 +0000
@@ -0,0 +1,11 @@
+# $NetBSD: Makefile,v 1.1 2022/02/23 16:17:41 pho Exp $
+
+DISTNAME= mtl-compat-0.2.2
+CATEGORIES= devel
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+COMMENT= Backported Control.Monad.Except module from mtl
+LICENSE= modified-bsd
+
+.include "../../mk/haskell.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r f8666d03cbd6 -r d87d2bcaafcb devel/hs-mtl-compat/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-mtl-compat/PLIST Wed Feb 23 16:17:41 2022 +0000
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1 2022/02/23 16:17:41 pho Exp $
+lib/mtl-compat-${PKGVERSION}/${HS_VERSION}/package-description
+lib/mtl-compat-${PKGVERSION}/${HS_VERSION}/package-id
+share/doc/${HS_PLATFORM}/mtl-compat-${PKGVERSION}/LICENSE
diff -r f8666d03cbd6 -r d87d2bcaafcb devel/hs-mtl-compat/buildlink3.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-mtl-compat/buildlink3.mk Wed Feb 23 16:17:41 2022 +0000
@@ -0,0 +1,13 @@
+# $NetBSD: buildlink3.mk,v 1.1 2022/02/23 16:17:41 pho Exp $
+
+BUILDLINK_TREE+= hs-mtl-compat
+
+.if !defined(HS_MTL_COMPAT_BUILDLINK3_MK)
+HS_MTL_COMPAT_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.hs-mtl-compat+= hs-mtl-compat>=0.2.2
+BUILDLINK_ABI_DEPENDS.hs-mtl-compat+= hs-mtl-compat>=0.2.2
+BUILDLINK_PKGSRCDIR.hs-mtl-compat?= ../../devel/hs-mtl-compat
+.endif # HS_MTL_COMPAT_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -hs-mtl-compat
diff -r f8666d03cbd6 -r d87d2bcaafcb devel/hs-mtl-compat/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-mtl-compat/distinfo Wed Feb 23 16:17:41 2022 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2022/02/23 16:17:41 pho Exp $
+
+BLAKE2s (mtl-compat-0.2.2.tar.gz) = e4eb3e6a0b04bcbdc9f1cef3bda29fec4ea5dc5d56c69ba8c5cf5d2bd27bd9e2
+SHA512 (mtl-compat-0.2.2.tar.gz) = 78a93e9e59d01bf0ffeb32f1322decd65d87cba8912d00f77347f0fc2f7190a755297953ac363ca3342c83822d36101b43ef044dc1f3b2ffef7c7710afda9d0d
+Size (mtl-compat-0.2.2.tar.gz) = 5128 bytes
Home |
Main Index |
Thread Index |
Old Index