Hello gentlemen,

Let me dare resurrect this thread and ask again for your opinion.

On Tue, Jan 17, 2012 at 3:47 PM, Eugene Kirpichov <ekirpichov@gmail.com> wrote:
Hi,

** cairo **
doesn't build with ghc 7.4 because the function toBool :: (Num a) => a -> Bool now also requires (Eq a).
So you have to include the constraint into cToBool in Graphics.Rendering.Cairo.Types.chs.

After that, the package builds fine.

** glib  **
fails with an error that is more difficult to fix:
you have to change System/Glib/hsgclosure.c:

    /* perform the call */
#if __GLASGOW_HASKELL__ >= 704
    rts_evalIO(&cap, rts_apply(CAP (HaskellObj)runIO_closure, call),&ret);
#else
    cap=rts_evalIO(CAP rts_apply(CAP (HaskellObj)runIO_closure, call),&ret);
#endif

After that, it builds fine.

Other packages (gio, pango, gtk) build fine without modifications.


--
Eugene Kirpichov
Principal Engineer, Mirantis Inc. http://www.mirantis.com/
Editor, http://fprog.ru/



--
Eugene Kirpichov
Principal Engineer, Mirantis Inc. http://www.mirantis.com/
Editor, http://fprog.ru/