As a side-note, it might be interesting to use the Vec package on Hackage, since it seems to offer fast, unboxed linear algebra.<div><br></div><div><div><div><div><div><div><div class="gmail_quote">On Mon, Aug 17, 2009 at 2:01 PM, jean legrand <span dir="ltr">&lt;<a href="mailto:kkwweett@yahoo.fr">kkwweett@yahoo.fr</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">As I&#39;ve been warned, two dependencies (Common.Utils and Common.Vector) are to be resolved in order to use this Tetris code.<br>

They&#39;re part of the elerea-examples package (from hackage) but their access is not public so a solution is to modify the cabal file during installation.<br>
<br>
Another solution is to create a Common directory in the current directory, then decompress the source located in<br>
<br>
<a href="http://hackage.haskell.org/package/elerea-examples" target="_blank">http://hackage.haskell.org/package/elerea-examples</a><br>
<br>
and copy the two files Vector.lhs and Utils.lhs in Common.<br>
<div><div></div><div class="h5"><br>
<br>
&gt; Hi Haskellers,<br>
&gt; Here is my first real program in Haskell.<br>
&gt;<br>
&gt; <a href="http://hpaste.org:80/fastcgi/hpaste.fcgi/view?id=8211" target="_blank">http://hpaste.org:80/fastcgi/hpaste.fcgi/view?id=8211</a><br>
&gt;<br>
&gt; In fact, I&#39;m not fully responsible because it&#39;s just an<br>
&gt; adapted version of a Tetris Creighton Hogg had written for<br>
&gt; Reactive/GLUT.<br>
&gt; As the first version, it&#39;s a very simple game (no levels,<br>
&gt; no points ...) but it&#39;s playable !<br>
&gt;<br>
&gt; The major problem is when the board is full, the program<br>
&gt; sadly stops for an empty list : indeed, I wasn&#39;t interested<br>
&gt; in that part and I prefered dealing with the signals.<br>
&gt;<br>
&gt; As the frame is the same as the breakout frame, it is also<br>
&gt; possible to launch the game with<br>
&gt;<br>
&gt; ./Tetris --dump-dot | dot -Tsvg -o tetris.svg<br>
&gt;<br>
&gt; in order to get an svg showing a graph of the signals. Any<br>
&gt; help is welcome to understand this graph !<br>
&gt;<br>
&gt; Every comment is welcome (especially about the first 170<br>
&gt; lines).<br>
&gt; Enjoy!<br>
<br>
<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>
</div></div></blockquote></div><br></div></div></div></div></div></div>