Hello Hugh, Thursday, August 9, 2007, 4:59:04 AM, you wrote:
> How easy is gtk to use from haskell by the way? In gc'd > imperative languages, typically only one thread is allowed to > communicate with the GUI, and you need to set up a whole bunch of > message-parsing stuff to communicate with other threads. To what > extent is this easier in Haskell? you can just send actions to the GUI thread :) something like this: main = do c <- newChan getChanContents c >>= forkOS . guiThread for [1..10] $ \i -> do writeChan c (print i) ... guiThread (a:actions) = do a guiThread actions -- Best regards, Bulat mailto:[EMAIL PROTECTED] _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe