openTempFile only defined on GHC

Bulat Ziganshin bulat.ziganshin at
Mon Apr 2 06:48:00 EDT 2007

Hello Simon,

Monday, April 2, 2007, 2:16:55 PM, you wrote:

>>    openTempFile,
>>    openBinaryTempFile,

> Isn't it just a bug that these functions are not implemented by other compilers?
>   There's no fundamental reason, right?  The implementation is necessarily
> dependent on the internals of Handle because openFile doesn't currently provide
> a way to open a file and fail if it already exists (the O_EXCL flag).

this means that these functions should be implemented in GHC.*, NHC.*
and Hugs.* and only then System.IO may include interface function that
will call one of them

Best regards,
 Bulat                            mailto:Bulat.Ziganshin at

More information about the Libraries mailing list