unsafeInterleaveIO
Ross Paterson
ross@soi.city.ac.uk
Mon, 11 Aug 2003 12:40:10 +0100
On Mon, Aug 11, 2003 at 12:15:57PM +0100, Simon Marlow wrote:
> I'm sure you're right, but I don't understand why an unsafePerformIO
> has to have its own thread at all.
In Hugs, threads exist only in the IO monad.
> It's fine for an unsafePerformIO to run to completion before
> anything else happens - in fact that's exactly what I'd expect in a
> single-threaded system.
Sure, but is that what you'd expect of unsafeInterleaveIO?