Re: [Haskell-cafe] Force -threaded from a library

2010-01-15 Thread John Van Enk
Thanks Bulat, I hadn't even considered doing it that way. :) /jve On Fri, Jan 15, 2010 at 3:35 AM, Bulat Ziganshin wrote: > Hello John, > > Friday, January 15, 2010, 1:42:15 AM, you wrote: > > > Is it possible to prevent a library from being used unless > > -threaded is enabled? I have a specif

Re: [Haskell-cafe] Force -threaded from a library

2010-01-15 Thread Bulat Ziganshin
Hello John, Friday, January 15, 2010, 1:42:15 AM, you wrote: > Is it possible to prevent a library from being used unless > -threaded is enabled? I have a specific case where lots-of-nasty yes. it's how opposite checked in gtk2hs: when (rtsSupportsBoundThreads) $ fail $ "\n" ++ "initGUI:

[Haskell-cafe] Force -threaded from a library

2010-01-14 Thread John Van Enk
Hi List, Is it possible to prevent a library from being used unless -threaded is enabled? I have a specific case where lots-of-nasty shows up if the library is linked against an executable built without -threaded. I suppose this is GHC specific. /jve _