[Haskell-cafe] killing a running thread interactively
Simon Marlow
simonmar at microsoft.com
Wed Sep 21 10:24:09 EDT 2005
On 16 September 2005 20:42, S. Alexander Jacobson wrote:
> If I am running a server interactively. (using ghci).
> Is there any way to kill its running threads without terminating the
> interpreter?
If you can get ThreadIds for the threads, yes. GHCi doesn't (currently)
create a new thread for each expression evaluation, so attempting to
kill that thread might kill your GHCi session (it shouldn't but that's
another story).
Cheers,
Simon
More information about the Haskell-Cafe
mailing list