Hi,
 gtk2hs is broken on the current GHC HEAD, the problem is coming from the
file tools/c2hs/base/general/Binary.hs in the definition of "instance Binary
Integer" around line 478.
 The use of S# and J# is to blame. I'm no ghc nerd, and don't really now why
there's this change, but it seems S# and J# are no longer exported by ghc.
But it's easy to fix as the file compiler/utils/Binary.hs  in the ghc tree
has been changed accordingly. I'm not sending a patch because it's stated as
an hideous fix, but here is the new code for the instance :

 instance Binary Integer where
    -- XXX This is hideous
    put_ bh i = put_ bh (show i)
    get bh = do str <- get bh
                case reads str of
                    [(i, "")] -> return i
                    _ -> fail ("Binary Integer: got " ++ show str)

Best,
  Marc de Falco
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Gtk2hs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel

Reply via email to