Ticket #1272 (closed defect: fixed)
glib not buildable with ghc 7.6.1
| Reported by: | guest | Owned by: | somebody |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.12.0 |
| Component: | general (Gtk+, Glib) | Version: | 0.11.0 |
| Keywords: | Cc: |
Description
hi,
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 )
System/Glib/GObject.chs:130:1:
Unacceptable result type in foreign declaration:
IO (FunPtr? (Ptr () -> IO ()))
When checking declaration:
foreign import ccall safe "wrapper" mkDestroyNotifyPtr
- IO () -> IO DestroyNotify?
128 {#pointer GDestroyNotify as DestroyNotify?#} 129 130 foreign import ccall "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.
Thanks!