unsafePerformIO and unsafeInterleaveIO

Manuel M. T. Chakravarty chak at cse.unsw.edu.au
Tue Mar 20 00:05:36 EST 2001


qrczak at knm.org.pl (Marcin 'Qrczak' Kowalczyk) wrote,

> Mon, 19 Mar 2001 11:04:43 -0700, Alastair Reid <reid at cs.utah.edu> pisze:
> 
> > > Should these functions be available through the standard FFI?
> > > IMHO they should.
> > 
> > I don't understand the question.
> > Are you asking which modules should export them?
> 
> Yes. IMHO they should be made as "standard" as the rest of FFI
> and exported from module Foreign.

I guess, you could a (maybe inefficient) version of
unsafePerformIO using the FFI functionality anyway.  This
gives us a default implementation, so I thing, we should
include it.  I am not so sure about unsafeInterleaveIO.

Manuel




More information about the FFI mailing list