pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/hs-mtl-compat



Module Name:    pkgsrc
Committed By:   pho
Date:           Wed Feb 23 16:17:41 UTC 2022

Added Files:
        pkgsrc/devel/hs-mtl-compat: DESCR Makefile PLIST buildlink3.mk distinfo

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/hs-mtl-compat/DESCR \
    pkgsrc/devel/hs-mtl-compat/Makefile pkgsrc/devel/hs-mtl-compat/PLIST \
    pkgsrc/devel/hs-mtl-compat/buildlink3.mk \
    pkgsrc/devel/hs-mtl-compat/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/devel/hs-mtl-compat/DESCR
diff -u /dev/null pkgsrc/devel/hs-mtl-compat/DESCR:1.1
--- /dev/null   Wed Feb 23 16:17:41 2022
+++ pkgsrc/devel/hs-mtl-compat/DESCR    Wed Feb 23 16:17:41 2022
@@ -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.
Index: pkgsrc/devel/hs-mtl-compat/Makefile
diff -u /dev/null pkgsrc/devel/hs-mtl-compat/Makefile:1.1
--- /dev/null   Wed Feb 23 16:17:41 2022
+++ pkgsrc/devel/hs-mtl-compat/Makefile Wed Feb 23 16:17:41 2022
@@ -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"
Index: pkgsrc/devel/hs-mtl-compat/PLIST
diff -u /dev/null pkgsrc/devel/hs-mtl-compat/PLIST:1.1
--- /dev/null   Wed Feb 23 16:17:41 2022
+++ pkgsrc/devel/hs-mtl-compat/PLIST    Wed Feb 23 16:17:41 2022
@@ -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
Index: pkgsrc/devel/hs-mtl-compat/buildlink3.mk
diff -u /dev/null pkgsrc/devel/hs-mtl-compat/buildlink3.mk:1.1
--- /dev/null   Wed Feb 23 16:17:41 2022
+++ pkgsrc/devel/hs-mtl-compat/buildlink3.mk    Wed Feb 23 16:17:41 2022
@@ -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
Index: pkgsrc/devel/hs-mtl-compat/distinfo
diff -u /dev/null pkgsrc/devel/hs-mtl-compat/distinfo:1.1
--- /dev/null   Wed Feb 23 16:17:41 2022
+++ pkgsrc/devel/hs-mtl-compat/distinfo Wed Feb 23 16:17:41 2022
@@ -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