22 Mar
2001
22 Mar
'01
1:53 p.m.
"Alastair Reid" <reid@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. Cheers, Manuel