Bertram Felgenhauer wrote:
> Hi,
> 
> here are two patches that allow gtk2hs to be compiled with the upcoming
> ghc 6.10.
> 
> There are two relevant changes:
> 
>   1) the constructors of Integer are no longer exported from GHC.Base
>      so the Binary instance can't use them.
> 
>      (update: integer-gmp now has an Integer.Internals module that
>      exports the constructors again. The patch below does not use
>      them.)
> 
>   2) base-4 has a new exception system, and there is a compatibility
>      package, base-3.0.3.0.
>      With the second patch below, gtk2hs is built with the compat
>      package.
> 
> I've checked that gtk2hs still builds on ghc 6.4.2, 6.6.1 and 6.8.3
> as well, excluding sourceview, gnomevfs and gstreamer.

Heh, I've actually done most of this work, I just haven't pushed it yet.  I 
took 
care of the Binary Integer problem by implementing it in terms of Bits methods, 
so it should be somewhat more portable (I haven't looked at your patch yet, but 
I imagine you did something similar).  The way I took care of the Exception 
problem was just by importing OldException when the base version is 4.0 or 
newer.  I think this is better because when we want to work on updating 
everything for the new Exception system, we can just grep for OldException.

I'll post my patch here in a bit so we can decide democratically how to handle 
this.

Pete

> 
> enjoy,
> 
> Bertram
> 
> Tue Apr 15 03:48:10 CEST 2008  Bertram Felgenhauer <[EMAIL PROTECTED]>
>   * alternative Binary instance for Integer - fix build with ghc 6.9.20080414
>   Integer is now implemented in GHC.Integer and its constructors are no 
> longer exported.
> 
> Fri Sep 26 01:13:23 CEST 2008  Bertram Felgenhauer <[EMAIL PROTECTED]>
>   * add Autoconf check for precise name of base package.
>   Only look for base package < 4. This allows gtk2hs to be built on ghc 6.10.
> 
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> 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


-------------------------------------------------------------------------
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