summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/hs-fail/DESCR7
-rw-r--r--devel/hs-fail/Makefile15
-rw-r--r--devel/hs-fail/buildlink3.mk13
-rw-r--r--devel/hs-fail/distinfo6
4 files changed, 41 insertions, 0 deletions
diff --git a/devel/hs-fail/DESCR b/devel/hs-fail/DESCR
new file mode 100644
index 00000000000..17d47ddcdb4
--- /dev/null
+++ b/devel/hs-fail/DESCR
@@ -0,0 +1,7 @@
+This package contains the Control.Monad.Fail module providing the
+MonadFail class that became available in base-4.9.0.0 for older base
+package versions.
+
+This package turns into an empty package when used with GHC versions
+which already provide the Control.Monad.Fail module to make way for
+GHC's own Control.Monad.Fail module.
diff --git a/devel/hs-fail/Makefile b/devel/hs-fail/Makefile
new file mode 100644
index 00000000000..8bcb79349de
--- /dev/null
+++ b/devel/hs-fail/Makefile
@@ -0,0 +1,15 @@
+# $NetBSD: Makefile,v 1.1 2019/12/31 14:24:57 pho Exp $
+
+DISTNAME= fail-4.9.0.0
+CATEGORIES= devel
+
+MAINTAINER= pho@cielonegro.org
+COMMENT= Forward-compatible MonadFail class
+LICENSE= modified-bsd
+
+# This package becomes essentially blank when built with GHC >=
+# 8.0. Haddock complains when there are no input files.
+HASKELL_ENABLE_HADDOCK_DOCUMENTATION= no
+
+.include "../../mk/haskell.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/hs-fail/buildlink3.mk b/devel/hs-fail/buildlink3.mk
new file mode 100644
index 00000000000..26539d259ee
--- /dev/null
+++ b/devel/hs-fail/buildlink3.mk
@@ -0,0 +1,13 @@
+# $NetBSD: buildlink3.mk,v 1.1 2019/12/31 14:24:57 pho Exp $
+
+BUILDLINK_TREE+= hs-fail
+
+.if !defined(HS_FAIL_BUILDLINK3_MK)
+HS_FAIL_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.hs-fail+= hs-fail>=4.9.0
+BUILDLINK_ABI_DEPENDS.hs-fail+= hs-fail>=4.9.0.0
+BUILDLINK_PKGSRCDIR.hs-fail?= ../../devel/hs-fail
+.endif # HS_FAIL_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -hs-fail
diff --git a/devel/hs-fail/distinfo b/devel/hs-fail/distinfo
new file mode 100644
index 00000000000..60006b8dc75
--- /dev/null
+++ b/devel/hs-fail/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2019/12/31 14:24:57 pho Exp $
+
+SHA1 (fail-4.9.0.0.tar.gz) = 2fdf8226e3e00fc29c30ae79f724a6704f825cd6
+RMD160 (fail-4.9.0.0.tar.gz) = 5f362dad5753c8293a0a08da8956b732271e98ae
+SHA512 (fail-4.9.0.0.tar.gz) = 0b4e6111387768482ff10b8ee55ff0b3b04750d8def057b7935bef814902de4536d0825e18b95a342722735b29cf88aafec21eb3b2a75eb4f0c55aa7c6b80108
+Size (fail-4.9.0.0.tar.gz) = 2416 bytes