From fb140f822392cd38ce275451d33e818fcdcab81c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?H=C3=A9cate=20Moonlight?= <hecate+gitlab@glitchbra.in>
Date: Mon, 3 Jul 2023 13:46:21 +0000
Subject: [PATCH] Relax the constraint about the foreign function's calling
 convention of FinalizerPtr to capi as well as ccall.

---
 libraries/base/GHC/ForeignPtr.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libraries/base/GHC/ForeignPtr.hs b/libraries/base/GHC/ForeignPtr.hs
index 4c57e9f6ade4..95652ddd988f 100644
--- a/libraries/base/GHC/ForeignPtr.hs
+++ b/libraries/base/GHC/ForeignPtr.hs
@@ -228,7 +228,7 @@ instance Show (ForeignPtr a) where
 -- finalisation time, gets as an argument a plain pointer variant of the
 -- foreign pointer that the finalizer is associated with.
 --
--- Note that the foreign function /must/ use the @ccall@ calling convention.
+-- Note that the foreign function /must/ either use the @ccall@ or the @capi@ calling convention.
 --
 type FinalizerPtr a        = FunPtr (Ptr a -> IO ())
 type FinalizerEnvPtr env a = FunPtr (Ptr env -> Ptr a -> IO ())
-- 
GitLab