<p>Do you need advice on what? I didn&#39;t understand your last phrase.</p>
<div class="gmail_quote">Em 26/01/2013 06:25, &quot;Erik de Castro Lopo&quot; &lt;<a href="mailto:mle%2Bhs@mega-nerd.com">mle+hs@mega-nerd.com</a>&gt; escreveu:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
I am in the process of writing a Haskell program consisting of two<br>
threads, one for performing a calculation and one for an Ncurses UI<br>
(haskell-ncurses).<br>
<br>
The calculation thread needs to feed a stream of numbers back to the<br>
UI thread (about 1 value per second) and the UI needs to take input<br>
from the user and will pass parameter changes to the calculation<br>
thread using an IORef and atomicModifyIORef.<br>
<br>
However, I&#39;m not sure how to hande the UI thread. The UI thread would<br>
normally wait for Ncurses input using getEvent, but I need advice on<br>
how to the the data from the calculation thread.<br>
<br>
Any advice or things to try?<br>
<br>
Cheers,<br>
Erik<br>
--<br>
----------------------------------------------------------------------<br>
Erik de Castro Lopo<br>
<a href="http://www.mega-nerd.com/" target="_blank">http://www.mega-nerd.com/</a><br>
<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</blockquote></div>