unsafePerformIO and cooperative concurrency
Manuel M T Chakravarty
chak at cse.unsw.edu.au
Sat Apr 29 01:56:15 EDT 2006
> Simon Marlow wrote:
> > Given that unsafePerformIO is (perhaps) to be part of the Haskell'
> > standard,
> Is there a ticket for this? I would prefer that unsafePerformIO and
> friends not be part of the standard.
Well, you need it for the FFI (for marshalling in pure foreign imports).
Plus you can efin eyour own one using the FFI.
> At risk of drifting off-topic, I think it would be better to find
> examples where unsafePerformIO is needed and used safely, and come up
> with safe functions for that (but not necessarily as part of the Prime
> effort). IIRC the darcs code uses it a lot.
More information about the Haskell-prime