Ticket #1272 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

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!

Change History

Changed 2 years ago by dmwit

  • status changed from new to closed
  • resolution set to fixed

(copy of message from previous Trac that was missed during migration)

This should be fixed now with the 0.12.4 release.

Note: See TracTickets for help on using tickets.