Ticket #1275 (closed defect: fixed)

Opened 2 years ago

Last modified 2 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:

Description

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:

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?

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.

Attachments

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

Change History

Changed 2 years ago by guest

Changed 2 years ago by guest

The latest release has fixed this (hopefully).

Changed 2 years ago by dmwit

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