From: Axel S. <A....@uk...> - 2003-02-26 23:29:55
|
On Mon, Feb 24, 2003 at 07:26:09PM +0100, Nick Name wrote: > On Mon, 24 Feb 2003 14:44:44 +0000 > Axel Simon <A....@uk...> wrote: > > > I think this is the more clumsy version of forcing gtk and ghc run in > > > > parallel. Instead of running the main loop of Gtk once in a while I > > think you are better off running Haskell when Gtk is idle: > > > > Gtk.idleAdd (yield >> return False) Gtk.priorityDefault > > Gtk.mainGUI > > However, this does not work, and putting a sleep >> before that yield > does not help, either. Ups, my fault. Try Gtk.idleAdd (yield >> return True) 500 The priorityDefault value is unfortunately not exported. This should be fixed. Axel. |