Re: [Gtk2hs-devel] GHashTable in Haskell [repost from hs-beginners]

2010-09-23 Thread Axel Simon
Hi, On Sep 23, 2010, at 18:11, John Obbele wrote: >> >> Why can't you simply initialize the GValue *only* in the error case? >> We could patch GValue but that means that your library will be >> dependent on some future version of gtk. > > This is what I was doing until now. It works well once you'

Re: [Gtk2hs-devel] GHashTable in Haskell [repost from hs-beginners]

2010-09-23 Thread John Obbele
Hi again ! On Thu, Sep 23, 2010 at 09:19:55AM +0200, Axel Simon wrote: > Hi John, > > > ... consequently, I propose to patch glib/System/Glib/GValue.chs > > (or add a message in haddock warning against this edge case): > > > > Why can't you simply initialize the GValue *only* in the error case?

Re: [Gtk2hs-devel] GHashTable in Haskell [repost from hs-beginners]

2010-09-23 Thread Axel Simon
Hi John, On 23.09.2010, at 01:26, John Obbele wrote: > channelGetProperty :: XfconfChannelClass self > => self -> String -> IO (Maybe XfconfValue) > channelGetProperty chan property = >withXfconf chan $ \chanPtr -> >withUTFString property $ \prop -> >alloc

Re: [Gtk2hs-devel] GHashTable in Haskell [repost from hs-beginners]

2010-09-22 Thread John Obbele
On Wed, Sep 22, 2010 at 08:36:20AM +0200, Axel Simon wrote: > Hi John, > > same here: sorry for the delay. no worries. I am not in a hurry and I can understand my questions seem sometimes awkward. > On Sep 13, 2010, at 2:40, John Obbele wrote: > >Anyway, forget about this, I have kept things sim

Re: [Gtk2hs-devel] GHashTable in Haskell [repost from hs-beginners]

2010-09-21 Thread Axel Simon
Hi John, same here: sorry for the delay. On Sep 13, 2010, at 2:40, John Obbele wrote: > Anyway, forget about this, I have kept things simple and only > coded a minimal subset of GHashTable, re-reading xfconf > documentation, it appears we only get (gchar*) keys and (gvalue*) > values. > > Yes, t

Re: [Gtk2hs-devel] GHashTable in Haskell [repost from hs-beginners]

2010-09-12 Thread John Obbele
Thanks for your answers Alex :) ... and sorry for the delay, I was caught in some confusions in my project about various C2HS stuff (such as how to handle newtype (foreign) variables across multiple modules). But please be patient with me since I still have one question ! First to resume briefly

Re: [Gtk2hs-devel] GHashTable in Haskell [repost from hs-beginners]

2010-09-08 Thread Axel Simon
Hi John, On Sep 7, 2010, at 16:40, John Obbele wrote: > Hi everyone ! > > Sorry for the double post between haskell-beginners and this > mailing-list but I am having trouble binding some part of Glib > and Xfconf to Haskell. > > Below is my original post: > ===