Hi Paul,<br><br>Can I have your code that doesn&#39;t work?&nbsp; 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> &lt;<a href="mailto:p.f.moore@gmail.com">
p.f.moore@gmail.com</a>&gt; 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 &lt;<a href="mailto:p.f.moore@gmail.com">
p.f.moore@gmail.com</a>&gt; wrote:<br>&gt; It probably wouldn&#39;t be hard to write a reasonably general wrapper for<br>&gt; this, but it&#39;s a bit late now so I&#39;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&#39;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>