Ticket #1275 (closed defect: fixed)
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.