unsafePerformIO and unsafeInterleaveIO
simonmar at microsoft.com
Tue Mar 20 04:33:49 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.
I'm not sure about including these functions in Foreign. Their location
should be standardised, sure: but that's something to be discussed as
part of the new library proposal. I don't feel they belong in Foreign.
More information about the FFI