Hi,<br><br><div class="gmail_quote">On Sun, Jul 26, 2009 at 7:25 PM, David Duke <span dir="ltr">&lt;<a href="mailto:djd@comp.leeds.ac.uk">djd@comp.leeds.ac.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">Conal Elliott wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
When I run a glut progam in os x under ghci, I get strange behavior, including a blank white title bar (no red/orange/green buttons and no title). If I compile with ghc --make and run, i get a normal title bar.<br>
<br>
Asking on #haskell today [1], I hear that glut and ghci don&#39;t get along on os x.<br>
<br>
What&#39;s known about this problem?  Is it fixable?  I get a lot of value out of having a REPL, so I hope there&#39;s a solution.<br>
</blockquote>
<br></div>
This sounds like the problem due to ghci not running as a Mac App.  If it is, the solution *used* to be to use the &quot;EnableGUI&quot; module and fix described on the SOE page <a href="http://www.haskell.org/soe/software1.htm" target="_blank">http://www.haskell.org/soe/software1.htm</a>; using this, I was able to run glut programs from ghci under OSX.</blockquote>
<div><br>However, compiled GLUT programs works perfectly well without being an App <br>(unlike say, programs using GLFW or wxWidgets), which is in my eyes a big advantage of GLUT. <br></div><div><br>The easy (though not at all ideal) way out of the ghci problem is to have a separate GLUT application,<br>
and communicate with the ghci part via tcp/ip or other interprocess communication method. This also solves<br>the problems stemming from the fact that the original glut is horribly broken in some aspects (which freeglut<br>
tries to fix, but freeglut is not universally installed)<br><br>Balazs</div></div><br>