Brian Hulley wrote:
Solved!
By just using the following syntax, GHC compiles everything correctly:

foreign import ccall
        "&duma_releaseFont"  -- absolutely vital for FunPtr functions
        duma_releaseFont
        :: FunPtr (Ptr RawFont -> IO ())

Yes, you're not the first person to trip over this one. I've done it myself, and it caused much head-scratching.

I think we should probably emit a warning in this case - it's much more likely that you meant to import "&foo" as a FunPtr, than just "foo".

Cheers,
        Simon
_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to