Is there a way to kill all forked threads in a GHCi session without restarting it?
问题 Based on my previous question I'd like to ask if there's any way to kill all user created threads in a GHCi session? The reason for this is that when a function exits in GHCi the threads that it spawned don't terminate automatically, persisting even through code reloads. Restarting GHCi solves this, but since my application takes a while to load, it would be great if there was a possible (even hacky) workaround. 回答1: No, and actually for almost the same reasons as in How can I build a