Re: [Haskell-cafe] Problem with Gtk2hs

2007-12-10 Thread Andrew Coppin
Duncan Coutts wrote: On Mon, 2007-12-10 at 10:40 +, Andrew Coppin wrote: What do I need to compile the darcs version? Just GHC? Or do I need the GTK+ header files? (Remember, I'm on Windows here.) Ah, that's a bit harder. It's not for the feint of heart. I've not updated the inst

Re: [Haskell-cafe] Problem with Gtk2hs

2007-12-10 Thread Duncan Coutts
On Mon, 2007-12-10 at 10:40 +, Andrew Coppin wrote: > What do I need to compile the darcs version? Just GHC? Or do I need the > GTK+ header files? (Remember, I'm on Windows here.) Ah, that's a bit harder. It's not for the feint of heart. I've not updated the instructions in a while. The ol

Re: [Haskell-cafe] Problem with Gtk2hs

2007-12-10 Thread Andrew Coppin
Duncan Coutts wrote: On Sat, 2007-12-08 at 13:08 -0800, Stefan O'Rear wrote: That's pretty obviously a bug - Graphics.UI.Gtk.Gdk.PixbufData doesn't fully implement the (M)Array class. The MArray class changed in ghc-6.8 and we didn't notice until the gtk2hs release was already out.

Re: [Haskell-cafe] Problem with Gtk2hs

2007-12-09 Thread Duncan Coutts
On Sat, 2007-12-08 at 13:08 -0800, Stefan O'Rear wrote: > On Sat, Dec 08, 2007 at 08:33:36PM +, Andrew Coppin wrote: > > I just spent the evening writing a library that's a thin layer over Gtk2hs. > > It took an age to get it to compile, but eventually it worked. Yay! > > > > When I ran it,

Re: [Haskell-cafe] Problem with Gtk2hs

2007-12-09 Thread Felipe Lessa
On Dec 8, 2007 6:33 PM, Andrew Coppin <[EMAIL PROTECTED]> wrote: > (Also, the documentation for Graphics.UI.Gtk.Misc.DrawingArea suggests > that you may want to draw a Pixbuf using the pixbufRenderToDrawable > function - but GHC complains that this function doesn't exist. I had to > use drawPixbuf

Re: [Haskell-cafe] Problem with Gtk2hs

2007-12-09 Thread Andrew Coppin
Stefan O'Rear wrote: On Sat, Dec 08, 2007 at 08:33:36PM +, Andrew Coppin wrote: I just spent the evening writing a library that's a thin layer over Gtk2hs. It took an age to get it to compile, but eventually it worked. Yay! When I ran it, I got this: Test2: gtk/Graphics/UI/Gtk/Gdk/Pixb

Re: [Haskell-cafe] Problem with Gtk2hs

2007-12-08 Thread Stefan O'Rear
On Sat, Dec 08, 2007 at 08:33:36PM +, Andrew Coppin wrote: > I just spent the evening writing a library that's a thin layer over Gtk2hs. > It took an age to get it to compile, but eventually it worked. Yay! > > When I ran it, I got this: > > Test2: gtk/Graphics/UI/Gtk/Gdk/PixbufData.hs.pp:58:0

[Haskell-cafe] Problem with Gtk2hs

2007-12-08 Thread Andrew Coppin
I just spent the evening writing a library that's a thin layer over Gtk2hs. It took an age to get it to compile, but eventually it worked. Yay! When I ran it, I got this: Test2: gtk/Graphics/UI/Gtk/Gdk/PixbufData.hs.pp:58:0: No instance nor default method for class operation Data.Array.Base.ge