I did compile with -threaded.<br><br><div class="gmail_quote">On Sun, Dec 20, 2009 at 5:42 PM, Maciej Piechotka <span dir="ltr">&lt;<a href="mailto:uzytkownik2@gmail.com">uzytkownik2@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">On Sun, 2009-12-20 at 17:25 -0500, Jamie Morgenstern wrote:<br>
&gt;<br>
&gt;<br>
&gt; Hello;<br>
&gt;<br>
&gt;<br>
&gt;  I am writing a parallel theorem prover using Haskell, and I am trying<br>
&gt; to do several things. As a first cut, I want to try using the par<br>
&gt; construct<br>
&gt; to attempt right and left rules simultaneously, and to evaluate both<br>
&gt; branches of an and clause in parallel. My code (attached) does not<br>
&gt; seem<br>
&gt; to generate sparks, however. When I run<br>
&gt;<br>
&gt; ./proposition +RTS -N2 -sstderr<br>
&gt;<br>
&gt; I get that no sparks are created. What am I doing wrong?<br>
&gt;<br>
&gt;<br>
&gt; Also, I was wondering if something akin to a &quot;parallel or&quot; exists. By<br>
&gt; this, I mean I am looking for a function which, given x : a , y : a,<br>
&gt; returns<br>
&gt; either, whichever computation returns first.  Can I use strategies to<br>
&gt; code up something like this?<br>
&gt; I suppose this doesn&#39;t play nicely with the idea of determinism, but<br>
&gt; thought it might be worth asking<br>
&gt; anyway.<br>
&gt;<br>
&gt; Thanks,<br>
&gt; -Jamie<br>
&gt;<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Haskell-Cafe mailing list<br>
&gt; <a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
&gt; <a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
<br>
-threaded?<br>
<br>
Regards<br>
<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><br>