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)
Marc de Falco
Get latest updates about Open Source Projects, Conferences and News.