Thanks Alot! I found the new updated redbook in the source code for GHC 6.6 with tons of examples. I have finally gotten the samples to compile and run, looks like clear sailing from here.<br><br><div><span class="gmail_quote">
On 2/22/07, <b class="gmail_sendername">Sven Panne</b> &lt;<a href="mailto:sven.panne@aedion.de">sven.panne@aedion.de</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Thursday 22 February 2007 13:02, Jamin A. Ohmoto-Frederick wrote:<br>&gt; Regarding Chris&#39; post -<br>&gt;<br>&gt; I ran into a lot of problems too since there are old<br>&gt; versions of HOpenGL and corresponding examples
<br>&gt; floating around out there with differing advice, such<br>&gt; as at <a href="http://www.haskell.org/HOpenGL/">http://www.haskell.org/HOpenGL/</a>.&nbsp;&nbsp;I&#39;m not sure<br>&gt; why it hasn&#39;t been updated since it&#39;s off of the main
<br>&gt; <a href="http://haskell.org">haskell.org</a>.<br><br>I admit being guilty here of not upating that site for a very long time. My<br>amount of time I can work on HOpenGL varies quite a bit depending on my Real<br>
Life (tm) ;-), I think it might be a good idea to move the stuff to the<br>Haskell Wiki, so it is easier to keep things up-to-date, integrate more<br>examples/tutorials/etc.&nbsp;&nbsp;I&#39;ll think about that...<br><br>&gt; There are some sites that include a lot of Red Book
<br>&gt; examples that should just compile and work with the<br>&gt; method I gave (such as ghc --make Planet.hs).&nbsp;&nbsp;Anyone<br>&gt; know a reason why some tutorials use the -package GLUT<br>&gt; option?<br><br>The OpenGL/GLUT packages are exposed by default, so there is no need to
<br>specify them explicitly, unless you are manually compiling and linking. This<br>is explained in detail at:<br><br><a href="http://www.haskell.org/ghc/docs/latest/html/users_guide/packages.html#using-packages">http://www.haskell.org/ghc/docs/latest/html/users_guide/packages.html#using-packages
</a><br><br>So the easiest way to use all OpenGL/GLUT stuff is importing Graphics.UI.GLUT<br>and using &quot;ghc --make&quot;. A single import, no special options...<br><br>&gt; Try some of these links:<br>&gt;<br>&gt; This should have the newer examples (can anyone tell
<br>&gt; me if there are any better sites than this?)<br>&gt; <a href="http://cvs.haskell.org/cgi-bin/cvsweb.cgi/~checkout~/fptools/libraries/GLUT">http://cvs.haskell.org/cgi-bin/cvsweb.cgi/~checkout~/fptools/libraries/GLUT
</a><br>&gt;/examples/RedBook/ [...]<br><br>The OpenGL/GLUT packages are now under darcs control instead of CVS, so the<br>latest and greatest examples are available at:<br><br>&nbsp;&nbsp; <a href="http://darcs.haskell.org/packages/GLUT/examples/">
http://darcs.haskell.org/packages/GLUT/examples/</a><br><br>If you use Hugs, it may already ship with all the examples, e.g. at:<br><br>&nbsp;&nbsp; /usr/lib/hugs/demos/GLUT<br><br>Cheers,<br>&nbsp;&nbsp; S.<br>_______________________________________________
<br>HOpenGL mailing list<br><a href="mailto:HOpenGL@haskell.org">HOpenGL@haskell.org</a><br><a href="http://www.haskell.org/mailman/listinfo/hopengl">http://www.haskell.org/mailman/listinfo/hopengl</a><br></blockquote></div>
<br><br clear="all"><br>-- <br>Without Wax,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Chris