opening a file for writing and reading

Bryan O'Sullivan bos at
Mon Jan 11 23:22:38 EST 2010

On Mon, Jan 11, 2010 at 7:49 PM, Jeremy Shaw <jeremy at> wrote:

> Alas, I get the error, openBinaryFile: resource busy (file is locked).
> What is the proper work around for this?

This behaviour is specified in the Haskell standard. I don't know what the
rationale is intended to be, but I don't like the behaviour either.

I believe you can work around it by using System.Posix.IO to open a file,
then convert the Fd to a Handle.
-------------- next part --------------
An HTML attachment was scrubbed...

More information about the Libraries mailing list