this post was submitted on 01 Jul 2023
8 points (100.0% liked)
Haskell
65 readers
3 users here now
**The Haskell programming language community.** Daily news and info about all things Haskell related: practical stuff, theory, types, libraries, jobs, patches, releases, events and conferences and more... ### Links - Get Started with Haskell
founded 1 year ago
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Why must FinalizerPtr take a foreign function that uses the
ccall
calling convention? Is there a concrete thing preventing GHC from acceptingcapi
?I suspect that comment predates the existence of
capi
and is trying to avoid having some other actual calling convention likestdcall
because the function pointer is actually invoked from some C code in the RTS.capi
is a sort of pseudo-calling-convention in that it generates some C code and then calls that stub.Have you tried using a capi defined funptr there to see what happens?