Hi Creighton,<br><br>Looks like you&#39;re getting close to at least one bug.&nbsp; Thanks very much.&nbsp; Would you do me a favor and make a trac ticket, to make sure it doesn&#39;t slip through the cracks of my memory?&nbsp; The trac URL is <a href="http://trac.haskell.org/reactive">http://trac.haskell.org/reactive</a> .<br>
<br>If you or anyone has a suggestion or bug report to offer and doesn&#39;t want to make a trac ticket, please let me know, and I&#39;ll do it.&nbsp; Better yet, let me know if there&#39;s anything I can do to make it more convenient to use trac.<br>
<br>Regards, - Conal<br><br><br><br><div class="gmail_quote">2008/11/12 Creighton Hogg <span dir="ltr">&lt;<a href="mailto:wchogg@gmail.com">wchogg@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
So below is something I discovered that seems very strange.<br><br>If you run the following code as is, it will run &amp; you&#39;ll get stuck in the already documented integral loop.<br>If you replace the use of events in main with events&#39;, the program consumes all available memory &amp; locks up hard.<br>

<br>I know I&#39;m horribly abusing Reactive here, but I don&#39;t see why it should fail _so_ ungracefully.<br><br>Cheers,<br>Creighton<br><br>import FRP.Reactive<br>import FRP.Reactive.LegacyAdapters<br>import Control.Concurrent<br>

import Control.Monad<br><br>x :: Event () -&gt; Behavior Double<br>x e = b where b = integral e b<br><br>events :: Event ()<br>events = atTimes [0.1,0.2]<br><br>events&#39; :: Event ()<br>events&#39; = once events<br><br>

schedule a = threadDelay 100000 &gt;&gt; a<br><br>main = do<br> &nbsp;c &lt;- makeClock<br> &nbsp;u &lt;- mkUpdater (cGetTime c) (fmap print $ &nbsp;x events)<br> &nbsp;forever $ schedule u
<br>_______________________________________________<br>
Reactive mailing list<br>
<a href="mailto:Reactive@haskell.org">Reactive@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/reactive" target="_blank">http://www.haskell.org/mailman/listinfo/reactive</a><br>
<br></blockquote></div><br>