As far as I know, you can&#39;t. It needs machine representable types, such as Int, Double, Char, etc. But making a tuple of three UArray Int Double may help.<br><br><div class="gmail_quote">2008/5/16 Lauri Oksanen &lt;<a href="mailto:lassoken@gmail.com">lassoken@gmail.com</a>&gt;:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">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" target="_blank">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" target="_blank">Bulat.Ziganshin@gmail.com</a><br>
<br>
</font></blockquote></div><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>
<br></blockquote></div><br>