<div class="gmail_quote">On Mon, Jan 11, 2010 at 7:49 PM, Jeremy Shaw <span dir="ltr">&lt;<a href="mailto:jeremy@n-heptane.com">jeremy@n-heptane.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Alas, I get the error, openBinaryFile: resource busy (file is locked).<br>
<br>
What is the proper work around for this?<br></blockquote><div><br></div><div>This behaviour is specified in the Haskell standard. I don&#39;t know what the rationale is intended to be, but I don&#39;t like the behaviour either.<br>
<br></div><div>I believe you can work around it by using <a href="http://System.Posix.IO">System.Posix.IO</a> to open a file, then convert the Fd to a Handle.</div></div>