unsafePerformIO and unsafeInterleaveIO

Manuel M. T. Chakravarty chak at cse.unsw.edu.au
Thu Mar 22 00:53:04 EST 2001

"Alastair Reid" <reid at cs.utah.edu> wrote,

> > Without a standard way to get
> > at unsafePerformIO, such code would still rely on
> > non-standard features, which goers against the aim of
> > standardising the rest of the FFI.
> The Hugs-GHC standard libs have them exported from IOExts.
> Of course, the Hugs-GHC standard isn't an official Haskell library committee approved standard but, since it's something like 4
> years old, I think it's a better candidate for approval than the ffi library which hasn't really stabilised yet, hasn't been whacked
> on by a large number of users, is much younger, etc.

There is only one flaw: It doesn't work with nhc98.

I'd really prefer to keep the FFI stuff self-contained and
have it work on ghc, Hugs, *and* nhc.


More information about the FFI mailing list