<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">selahaddin gerdan</b> <span dir="ltr"><<a href="mailto:selahattin.gerdan@gmail.com">selahattin.gerdan@gmail.com</a>></span><br>
Date: 2009/9/28<br>Subject: Re: [Haskell-cafe] frag game-compiling error<br>To: Lyndon Maydwell <<a href="mailto:maydwell@gmail.com">maydwell@gmail.com</a>><br><br><br>Sorry I'm just learning haskell, so I don'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"><<a href="mailto:maydwell@gmail.com" target="_blank">maydwell@gmail.com</a>></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>
"from<numeric type>" call.<br>
<div><div></div><div><br>
On Mon, Sep 28, 2009 at 8:00 AM, selahaddin gerdan<br>
<<a href="mailto:selahattin.gerdan@gmail.com" target="_blank">selahattin.gerdan@gmail.com</a>> wrote:<br>
> Hi there,<br>
> when I try to install frag,I get this error:<br>
><br>
> .cabal/bin/cabal install frag<br>
> Resolving dependencies...<br>
> Downloading frag-1.1.2...<br>
> Configuring frag-1.1.2...<br>
> Preprocessing executables for frag-1.1.2...<br>
> Building frag-1.1.2...<br>
> [ 1 of 39] Compiling IdentityList ( src/IdentityList.hs,<br>
> dist/build/frag/frag-tmp/<br>
> IdentityList.o )<br>
> [ 2 of 39] Compiling Quaternion ( src/Quaternion.hs,<br>
> dist/build/frag/frag-tmp/Quaternion.o )<br>
><br>
> src/Quaternion.hs:22:27:<br>
> Couldn't match expected type `GLfloat'<br>
> against inferred type `Float'<br>
> In the expression: (r00 :: GLfloat)<br>
> In the second argument of `newMatrix', namely<br>
> `[(r00 :: GLfloat), r01, r02, r03, ....]'<br>
> In the expression:<br>
> newMatrix ColumnMajor [(r00 :: GLfloat), r01, r02, r03, ....]<br>
> cabal: Error: some packages failed to install:<br>
> frag-1.1.2 failed during the building phase. The exception was:<br>
> exit: ExitFailure 1<br>
><br>
> Why?<br>
</div></div>> _______________________________________________<br>
> Haskell-Cafe mailing list<br>
> <a href="mailto:Haskell-Cafe@haskell.org" target="_blank">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>
><br>
</blockquote></div></div></div><br>
</div><br>