more unsafePerformIO questions ([...])

Wolfgang Jeltsch wolfgang@jeltsch.net
Tue, 19 Aug 2003 13:23:52 +0200


On Tuesday, 2003-08-19, 13:18, Simon Marlow wrote:
> [...]

> Yes, I agree that one shouldn't rely on the "no duplication of work"
> property.  However, folloing this argument we arrive at the conclusion that
> hGetContents is an invalid use of unsafePerformIO.  (which is something I've
> been saying for a while now :-).

Can't hGetContents be implemented without unsafePerformIO but with 
unsafeInterleaveIO? Wouldn't this be valid? Am I'm missing something here?

> Cheers,
> 	Simon

Wolfgang