[Bug 1045963] Review Request: ghc-gtk3 - Binding to the Gtk+ graphical user interface library

bugzilla at redhat.com bugzilla at redhat.com
Fri Sep 4 11:25:05 UTC 2015


https://bugzilla.redhat.com/show_bug.cgi?id=1045963



--- Comment #26 from Jens Petersen <petersen at redhat.com> ---
Just for the record I tried to backport to 0.12.5 for F21 and EPEL7
but the build fails (with ghc-7.6.3 stack) like this:

[117 of 198] Compiling Graphics.UI.Gtk.Multiline.TextTagTable (
dist/build/Graphics/UI/Gtk/Multiline/TextTagTable.hs,
dist/build/Graphics/UI/Gtk/Multiline/TextTagTable.o )
Graphics/UI/Gtk/Multiline/TextTagTable.chs:88:3:
    Couldn't match type `CInt' with `()'
    Expected type: IO ()
      Actual type: IO CInt
    In the return type of a call of `\ (TextTagTable arg1)
                                       (TextTag arg2)
                                       -> withForeignPtr arg1
                                          $ \ argPtr1 -> withForeignPtr arg2 $
\ argPtr2 -> ...'
    In the expression:
      (\ (TextTagTable arg1) (TextTag arg2)
         -> withForeignPtr arg1
            $ \ argPtr1
                -> withForeignPtr arg2
                   $ \ argPtr2 -> gtk_text_tag_table_add argPtr1 argPtr2)
        (toTextTagTable self) (toTextTag tag)
    In an equation for `textTagTableAdd':
        textTagTableAdd self tag
          = (\ (TextTagTable arg1) (TextTag arg2)
               -> withForeignPtr arg1
                  $ \ argPtr1 -> withForeignPtr arg2 $ \ argPtr2 -> ...)
              (toTextTagTable self) (toTextTag tag)

Also tried latest current gtk2hs-buildtools but that doesn't help.
I guess it is an issue with ghc-7.6 probably.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=PpvHIKhdkj&a=cc_unsubscribe


More information about the haskell-devel mailing list