<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">selahaddin gerdan</b> <span dir="ltr">&lt;<a href="mailto:selahattin.gerdan@gmail.com">selahattin.gerdan@gmail.com</a>&gt;</span><br>
Date: 2009/9/28<br>Subject: Re: [Haskell-cafe] frag game-compiling error<br>To: Lyndon Maydwell &lt;<a href="mailto:maydwell@gmail.com">maydwell@gmail.com</a>&gt;<br><br><br>Sorry I&#39;m just learning haskell, so I don&#39;t get your suggestion. Could you explain to me what exactly I have to do? <br>
<br>According to <a href="http://cvs.haskell.org/Hugs/pages/libraries/OpenGL/Graphics-Rendering-OpenGL-GL-BasicTypes.html#t%3AGLfloat" target="_blank">this</a> page GLfloat is just a type synonym for type Float.<br>
How come the error message differentiates between them? <br><br><div class="gmail_quote">2009/9/28 Lyndon Maydwell <span dir="ltr">&lt;<a href="mailto:maydwell@gmail.com" target="_blank">maydwell@gmail.com</a>&gt;</span><div>
<div></div><div class="h5"><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I think this is an opengl version problem. I came across this error in<br>
vacuum-opengl after I had upgraded my opengl. I patched it up using a<br>
&quot;from&lt;numeric type&gt;&quot; call.<br>
<div><div></div><div><br>
On Mon, Sep 28, 2009 at 8:00 AM, selahaddin gerdan<br>
&lt;<a href="mailto:selahattin.gerdan@gmail.com" target="_blank">selahattin.gerdan@gmail.com</a>&gt; wrote:<br>
&gt; Hi there,<br>
&gt; when I try to install frag,I get this error:<br>
&gt;<br>
&gt; .cabal/bin/cabal install frag<br>
&gt; Resolving dependencies...<br>
&gt; Downloading frag-1.1.2...<br>
&gt; Configuring frag-1.1.2...<br>
&gt; Preprocessing executables for frag-1.1.2...<br>
&gt; Building frag-1.1.2...<br>
&gt; [ 1 of 39] Compiling IdentityList     ( src/IdentityList.hs,<br>
&gt; dist/build/frag/frag-tmp/<br>
&gt; IdentityList.o )<br>
&gt; [ 2 of 39] Compiling Quaternion       ( src/Quaternion.hs,<br>
&gt; dist/build/frag/frag-tmp/Quaternion.o )<br>
&gt;<br>
&gt; src/Quaternion.hs:22:27:<br>
&gt;     Couldn&#39;t match expected type `GLfloat&#39;<br>
&gt;            against inferred type `Float&#39;<br>
&gt;     In the expression: (r00 :: GLfloat)<br>
&gt;     In the second argument of `newMatrix&#39;, namely<br>
&gt;         `[(r00 :: GLfloat), r01, r02, r03, ....]&#39;<br>
&gt;     In the expression:<br>
&gt;         newMatrix ColumnMajor [(r00 :: GLfloat), r01, r02, r03, ....]<br>
&gt; cabal: Error: some packages failed to install:<br>
&gt; frag-1.1.2 failed during the building phase. The exception was:<br>
&gt; exit: ExitFailure 1<br>
&gt;<br>
&gt; Why?<br>
</div></div>&gt; _______________________________________________<br>
&gt; Haskell-Cafe mailing list<br>
&gt; <a href="mailto:Haskell-Cafe@haskell.org" target="_blank">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>
&gt;<br>
&gt;<br>
</blockquote></div></div></div><br>
</div><br>