Thanks for help. I did some tests with UArray and it does the trick. <br>The problem remaining is, how to implement UArray Int (Double, Double, Double)?<br>UArray source code is far too cryptic for me. <br><br>Regards,<br>
Lauri<br><br><div class="gmail_quote">On Fri, May 16, 2008 at 11:37 AM, Bulat Ziganshin &lt;<a href="mailto:bulat.ziganshin@gmail.com">bulat.ziganshin@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello Lauri,<br>
<br>
Friday, May 16, 2008, 12:19:29 PM, you wrote:<br>
<br>
&gt; &nbsp;&nbsp;&nbsp;&nbsp; pixelArray :: Array Int Color<br>
<br>
it&#39;s boxed array which means that its elements are stored as thunks<br>
computed only when you actually use them. try UArray instead:<br>
<br>
<a href="http://haskell.org/haskellwiki/Modern_array_libraries" target="_blank">http://haskell.org/haskellwiki/Modern_array_libraries</a><br>
<font color="#888888"><br>
<br>
--<br>
Best regards,<br>
&nbsp;Bulat &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;mailto:<a href="mailto:Bulat.Ziganshin@gmail.com">Bulat.Ziganshin@gmail.com</a><br>
<br>
</font></blockquote></div><br>