Are you using ghc-7.6?  Those look very similar to the sorts of errors I fixed when making gtk2hs ghc-7.6 compatible.  Probably some of the bindings for gtk3 functions would also need to be adjusted.

You can try 7.4, or you can look at this patch from the gtk2hs repo:

John L.

Wed Sep 26 08:54:09 SGT 2012  jwlato@gmail.com
  * modify foreign import functions for ghc-7.6 compatibility

to see the sorts of changes that had to be made.  The process is pretty straightforward, if a bit tedious.

 
From: Magicloud <magicloud.magiclouds@gmail.com>

Finally I found a gtk3 patch to gtk2hs. Thank you for the work.
But when I was trying to install it, I got these errors:
Graphics/UI/Gtk/Printing/PrintOperation.chs:409:6:
    Couldn't match expected type `Ptr ()' with actual type `Window'
    In the return type of a call of `toWindow'
    In the third argument of `\ (PrintOperation arg1) arg2 arg3 arg4
                                -> withForeignPtr arg1
                                   $ \ argPtr1
                                       -> gtk_print_operation_run argPtr1
arg2 arg3 arg4', namely
      `(toWindow parent)'
    In the expression:
      (\ (PrintOperation arg1) arg2 arg3 arg4
         -> withForeignPtr arg1
            $ \ argPtr1 -> gtk_print_operation_run argPtr1 arg2 arg3 arg4)
        (toPrintOperation self)
        ((fromIntegral . fromEnum) action)
        (toWindow parent)
        errorPtr

Graphics/UI/Gtk/Printing/PrintOperation.chs:504:7:
    Couldn't match expected type `Ptr ()' with actual type `Window'
    In the return type of a call of `toWindow'
    In the first argument of `\ arg1
                                (PageSetup arg2)
                                (PrintSettings arg3)
                                -> withForeignPtr arg2
                                   $ \ argPtr2 -> withForeignPtr arg3 $ \
argPtr3 -> ...', namely
      `(toWindow window)'
    In the second argument of `($)', namely
      `(\ arg1 (PageSetup arg2) (PrintSettings arg3)
          -> withForeignPtr arg2
             $ \ argPtr2
                 -> withForeignPtr arg3
                    $ \ argPtr3
                        -> gtk_print_run_page_setup_dialog arg1 argPtr2
argPtr3)
         (toWindow window)
         (toPageSetup pageSetup)
         (toPrintSettings setting)'

Graphics/UI/Gtk/Printing/PrintOperation.chs:530:7:
    Couldn't match expected type `Ptr ()' with actual type `Window'
    In the return type of a call of `toWindow'
    In the first argument of `\ arg1
                                (PageSetup arg2)
                                (PrintSettings arg3)
                                arg4
                                arg5
                                -> withForeignPtr arg2
                                   $ \ argPtr2 -> withForeignPtr arg3 $ \
argPtr3 -> ...', namely
      `(toWindow window)'
    In a stmt of a 'do' block:
      (\ arg1 (PageSetup arg2) (PrintSettings arg3) arg4 arg5
         -> withForeignPtr arg2
            $ \ argPtr2
                -> withForeignPtr arg3
                   $ \ argPtr3
                       -> gtk_print_run_page_setup_dialog_async
                            arg1 argPtr2 argPtr3 arg4 arg5)
        (toWindow window)
        (toPageSetup pageSetup)
        (toPrintSettings setting)
        funcPtr
        nullPtr
Failed to install gtk-0.12.3.1

? 2012?10?8????UTC+8??1?20?26??Hamish???
>
> I have managed to get Leksah working with Gtk 3.  I have uploaded the
> patched Gtk2Hs to patch-tag (including Peter's patches and some new ones).
>
> Unfortunately the gtksourceview repo is still darcs-1 so I did not
> think it was a good idea.
>
> Fun new features in Leksah are "View->Dark" mode switch, to request a dark
> theme from Gtk (tested with the Adwaita theme) and a "Fullscreen"
> mode (not tested on multi monitors yet).
>
> OS X
> ----
> You are probably best of with the binaries as gtk-osx is hard to install..
> http://leksah.org/packages/leksah-0.13.0.0-ghc-7.0.3.dmg
> http://leksah.org/packages/leksah-0.13.0.0-ghc-7.0.4.dmg
> http://leksah.org/packages/leksah-0.13.0.0-ghc-7.4.1.dmg
> (only tested on Mountain Lion)
>
> Linux
> -----
> First install the patched Gtk2Hs
>
> sudo apt-get install libgtksourceview-3.0-dev
> darcs get http://patch-tag.com/r/hamish/gtk2hs
> cd gtk2hs/tools
> cabal install
> cd ../gtk
> cabal install -fgtk3
>
> Then get the gtksourceview darcs repo and apply the patches found
> here... http://goo.gl/fbykm
>
> cd gtksourceview
> cabal install -fgtk3
>
> Finally follow the instructions in the Development section at the bottom
> of this page...
> http://www.leksah.org/download.html
>
> Windows
> -------
> Ummm... Have you considered a linux VM?  I will try to make binaries
> as soon as I get Gtk 3 installed (don't hold your breath).
>
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov

------------------------------

_______________________________________________
Gtk2hs-devel mailing list
Gtk2hs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel


End of Gtk2hs-devel Digest, Vol 68, Issue 4
*******************************************