Ticket #1275 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

doesn't built on ghc 7.6.1

Reported by: guest Owned by: somebody
Priority: normal Milestone: 0.11.0
Component: general (Gtk+, Glib) Version: 0.11.0
Keywords: Cc:


There are also a couple of files that require 'import Control.Exception (catch)' since that's no longer exported from the prelude. I'll attach a darcs patch.

However, there's a larger problem, namely:


Unacceptable result type in foreign declaration:

IO (FunPtr? (Ptr () -> IO ()))

When checking declaration:

foreign import ccall safe "wrapper" mkDestroyNotifyPtr

IO () -> IO DestroyNotify?

Wrapper calls are supposed to look like 'a -> IO (FunPtr? a)', but with DestroyNotify? expanded it becomes

foreign import ccall "wrapper" mkDestroyNotifyPtr

IO () -> IO (FunPtr? (((Ptr ()) -> (IO ()))))

So something weird is going on here, but it's moved past trivial fix so I thought I'd ask the official maintainers.


fix.patch (6.0 kB) - added by guest 5 years ago.

Change History

Changed 5 years ago by guest

Changed 5 years ago by guest

The latest release has fixed this (hopefully).

Changed 5 years ago by dmwit

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.