opening a file for writing and reading

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


On Mon, Jan 11, 2010 at 7:49 PM, Jeremy Shaw <jeremy at n-heptane.com> 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...
URL: http://www.haskell.org/pipermail/libraries/attachments/20100111/8d7af1fc/attachment.html


More information about the Libraries mailing list