Ticket #1272 (closed defect: fixed)
glib not buildable with ghc 7.6.1
|Reported by:||guest||Owned by:||somebody|
|Component:||general (Gtk+, Glib)||Version:||0.11.0|
I was trying to compile haskelll glib with ghc 7.6.1 and I got the following error
[12 of 21] Compiling System.Glib.GObject ( dist/build/System/Glib/GObject.hs, dist/build/System/Glib/GObject.o )
Unacceptable result type in foreign declaration:
IO (FunPtr? (Ptr () -> IO ()))
When checking declaration:
foreign import ccall safe "wrapper" mkDestroyNotifyPtr
- IO () -> IO DestroyNotify?
I had a similar error with a CInt type with a similar error in a different package. The problem turned out that you also had to import the type constructor if it was a newtype.
Any help would be appreciated.