<div>Well, it seems that my problem is solved. I copied again the whole example, this time literally (Ctrl-C, Ctrl-V), and it just worked.</div><div><br></div><div>Problem is, I still don&#39;t know what went wrong with my previous attempt :P</div>

<div><br></div><div>Anyways, thanks!</div><br clear="all">João Paulo Pizani Flor<div><a href="mailto:joaopizani@gmail.com" target="_blank">joaopizani@gmail.com</a></div><div>Ciência da Computação - 2007/1</div><div>Universidade Federal de Santa Catarina</div>

<br>
<br><br><div class="gmail_quote">2010/9/27 João Paulo Pizani Flor <span dir="ltr">&lt;<a href="mailto:joaopizani@gmail.com">joaopizani@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div>Hello dear Haskell People! I&#39;m currently very interested in doing some parallel programming in Haskell, specially in using the Data Parallel Haskell stuff...</div><div><br></div><div>So as a first step I tried to emulate the vector multiply example found in the Haskell Wiki:  <a href="http://www.haskell.org/haskellwiki/GHC/Data_Parallel_Haskell#A_simple_example" target="_blank">http://www.haskell.org/haskellwiki/GHC/Data_Parallel_Haskell#A_simple_example</a></div>


<div><br></div><div>The code I&#39;ve written (two files) for this example is in the following pastebins:</div><div><br></div><div>DPHVecMul.hs:  <a href="http://paste.org/pastebin/view/22899" target="_blank">http://paste.org/pastebin/view/22899</a></div>


<div>Main.hs:  <a href="http://paste.org/pastebin/view/22900" target="_blank">http://paste.org/pastebin/view/22900</a></div><div><br></div><div>I&#39;ve compiled successfully both files and linked them, exactly as described in the Wiki. But when I run the resulting executable, the following error shows up:</div>


<div><br></div><div>&quot;dotp: Prelude.undefined&quot;</div><div><br></div><div>It&#39;s seems (from the tests I&#39;ve done) that the call to the function <b>fromPArrayP </b>of the module <b>Data.Parallel.Array.Prelude </b>results always in undefined. In fact, I&#39;ve taken a look at the function definition in the docs, and in fact it always returns undefined. It doesn&#39;t make ANY SENSE to me :P</div>


<div><br></div><div>Has someone been able to successfully compile and run this example code?? If so, what am I doing wrong? Is there some obvious error I&#39;m incurring in? :D</div><div><br></div><div><br></div><div>Regards,</div>


<br clear="all"><font color="#888888">João Paulo Pizani Flor<div>
<a href="mailto:joaopizani@gmail.com" target="_blank">joaopizani@gmail.com</a></div><div>Computer Science - 2007/1</div><div>Federal University of Santa Catarina - Brazil</div><br>
</font></blockquote></div><br>