[Haskell-cafe] GHCi and threads,
was Connecting to a running process (REPL)
Simon Marlow
simonmar at microsoft.com
Mon Dec 12 10:02:42 EST 2005
On 10 December 2005 23:45, Rohan Drape wrote:
> On Tue Dec 6 15:01:45 EST 2005 Tomasz Zielonka wrote:
>
>> Unfortunately it seems that forkIO'ed threads are freezed when GHCi
>> is waiting for command-line input. I bet it would be possible to let
>> the threads work in the background. I think the current behaviour is
>> caused by using readline, which is a foreign library. Or it is by
>> design?
>
> I also think this is unfortunate, and would like to know if this can
> be worked around (ie. I could happily live without readline if that is
> the issue and it can be switched off).
The fix is trivial: we have to add -threaded when we link GHCi. The
only reason I haven't done this yet is because I'm being cautious; the
threaded RTS is a fair bit more complex that the non-threaded RTS. I
think we'll schedule this for 6.6 though.
Cheers,
Simon
More information about the Haskell-Cafe
mailing list