Skip to content
Snippets Groups Projects
Commit fb140f82 authored by Hécate Kleidukos's avatar Hécate Kleidukos Committed by Marge Bot
Browse files

Relax the constraint about the foreign function's calling convention of...

Relax the constraint about the foreign function's calling convention of FinalizerPtr to capi as well as ccall.
parent cf735db8
No related branches found
No related tags found
No related merge requests found
......@@ -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 ())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment