[Haskell-cafe] gtk2hs and runghc

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Wed Sep 23 13:29:29 EDT 2009


On Tue, 2009-09-22 at 17:08 -0400, Brandon S. Allbery KF8NH wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Sep 22, 2009, at 11:31 , Günther Schmidt wrote:
> > Gtk2hs then complains about running in a multithreaded ghc, ie. one  
> > with several "real" OS threads. Is it possible to start runghc  
> > single-threaded?
> 
> 
> No, but you can unsafeInitGUIForThreadedRTS.

If you observe the foot-shooting restrictions (of which the easiest is
to not use forkIO).


Duncan



More information about the Haskell-Cafe mailing list