[Haskell-cafe] Unacceptable argument type in foreign declaration: Ptr ()
hsyl20 at gmail.com
Fri Jan 23 17:20:22 UTC 2015
"dynamic" is used to convert a FunPtr into a native Haskell function.
According to , the first Ptr () should be something like FunPtr (Ptr ()
-> Ptr GUID -> IO Int32).
Then you have to cast the function pointer (methPtr in ) into a FunPtr
 Lines 1420 and 1858 in
2015-01-23 8:59 GMT+01:00 Henk-Jan van Tuyl <hjgtuyl at chello.nl>:
> I am trying to compile a package that hasn't been updated since 2009 and I
> get a lot of messages like:
> Unacceptable argument type in foreign declaration: Ptr ()
> When checking declaration:
> foreign import stdcall safe "dynamic" prim_System_Win32_Com_
> :: Ptr () -> Ptr () -> Ptr GUID -> IO Int32
> How can I correct this?
> Henk-Jan van Tuyl
> Folding at home
> What if you could share your unused computer power to help find a cure? In
> just 5 minutes you can join the world's biggest networked computer and get
> us closer sooner. Watch the video.
> Haskell programming
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe