Use type parameter (if specified) for default out-marshall ForeignPtr
Open
- Dominant language
- Haskell
- Stars
- 211
- Forks
- 52
- PR merge metrics
- No merged PRs in 30d
Description
Related to #73.
I believe fix for that previous issue did not address the case when pointer type parater was specified in pointer declaration. For example, if we have
{# pointer *cpSpace as CPSpacePtr foreign finalizer cpSpaceFree -> CPSpace #}
The produced finalizer import block will read as follows:
foreign import ccall "Chiphunk.chs.h &cpSpaceFree"
cpSpaceFree :: C2HSImp.FinalizerPtr ()
Note that the type paramter to FinalizePtr is still (), which will not compile together with `type CPSpacePtr = C2HSImp.ForeignPtr (CPSpace)`.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.