Quoting John Lato <jwl...@gmail.com>: > I've attached a minimal patch bundle which I believe adds ghc-7.6 > compatibility to gtk2hs
Applied, thanks a lot! I had a go at unifying all these declarations by adding something like type family WrapperFor ft type instance WrapperFor (FunPtr ft) = ft -> IO (FunPtr ft) so that instead of, e.g. foreign import ccall "wrapper" mkSourceFunc :: (Ptr () -> IO {#type gint#}) -> IO SourceFunc we could write foreign import ccall "wrapper" mkSourceFunc :: WrapperFor SourceFunc ...but it turns out that GHC 7.0 won't expand this type family in FFI type declarations. =( ~d ------------------------------------------------------------------------------ LogMeIn Central: Instant, anywhere, Remote PC access and management. Stay in control, update software, and manage PCs from one command center Diagnose problems and improve visibility into emerging IT issues Automate, monitor and manage. Do more in less time with Central http://p.sf.net/sfu/logmein12331_d2d _______________________________________________ Gtk2hs-devel mailing list Gtk2hs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel