Hi Paul,<br><br>Can I have your code that doesn't work? I want to fiddle with it a bit.<br><br>Thanks<br><br>-John<br><br><div><span class="gmail_quote">On 2/12/07, <b class="gmail_sendername">Paul Moore</b> <<a href="mailto:p.f.moore@gmail.com">
p.f.moore@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On 09/02/07, Paul Moore <<a href="mailto:p.f.moore@gmail.com">
p.f.moore@gmail.com</a>> wrote:<br>> It probably wouldn't be hard to write a reasonably general wrapper for<br>> this, but it's a bit late now so I'll leave that as an exercise :-)<br><br>Sigh. I tried to set this up (using a little external C routine to do
<br>the API grunt work) and it doesn't seem to work as I expect. Maybe the<br>C/GHC runtimes do something more complex than just using the API<br>standard handles, maybe I coded something wrong.<br><br>In theory, this should work. In practice, Haskell may benefit from an
<br>equivalent of the C freopen() function (from stdio), which deals<br>correctly with the internals of handles...<br><br>Paul.<br></blockquote></div><br>