<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Yeah, I got a parse error when it was on two lines and I must have backed over the comma when I put it all on one line. Sorry.<br><br>Yes, it compiles and runs, just like it did before.<br><br>Michael<br><br>--- On <b>Sun, 1/30/11, Paul L <i>&lt;ninegua@gmail.com&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Paul L &lt;ninegua@gmail.com&gt;<br>Subject: Re: [Haskell-cafe] Code from Haskell School of Expression hanging.<br>To: "michael rice" &lt;nowgate@yahoo.com&gt;<br>Cc: haskell-cafe@haskell.org<br>Date: Sunday, January 30, 2011, 3:53 PM<br><br><div id="yiv1773221293">You missed the comma after the first 8.<br><br><div class="yiv1773221293gmail_quote">On Sun, Jan 30, 2011 at 12:15 PM, michael rice <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:nowgate@yahoo.com"
 target="_blank" href="/mc/compose?to=nowgate@yahoo.com">nowgate@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="yiv1773221293gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font: inherit;" valign="top">The expression (the swapped line) on line 12 is all on one line in my code.<br>
<br>
Michael<br>
<br>======================<br><br>[michael@localhost ~]$ ghc --make rat2.hs<br>[1 of 1] Compiling Main&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ( rat2.hs, rat2.o )<br><br>rat2.hs:12:37:<br>&nbsp;&nbsp;&nbsp; Couldn't match expected type `(Int -&gt; DisplayBits)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&gt; t<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&gt; DisplayBits'<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; against inferred type `DisplayBits'<br>&nbsp;&nbsp;&nbsp; In the expression: DisplayStencilBits 8 DisplayAlphaBits 8<br>
&nbsp;&nbsp;&nbsp; In the second argument of `openWindow',
 namely<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; `[DisplayStencilBits 8 DisplayAlphaBits 8]'<br>&nbsp;&nbsp;&nbsp; In a stmt of a 'do' expression:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; openWindow<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (Size 400 400) [DisplayStencilBits 8 DisplayAlphaBits 8] Window<br>[michael@localhost ~]$<div class="yiv1773221293im">
<br><br><br>--- On <b>Sun, 1/30/11, Paul L <i>&lt;<a rel="nofollow" ymailto="mailto:ninegua@gmail.com" target="_blank" href="/mc/compose?to=ninegua@gmail.com">ninegua@gmail.com</a>&gt;</i></b> wrote:<br></div><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">
<div class="yiv1773221293im"><br>From: Paul L &lt;<a rel="nofollow" ymailto="mailto:ninegua@gmail.com" target="_blank" href="/mc/compose?to=ninegua@gmail.com">ninegua@gmail.com</a>&gt;<br>Subject: Re: [Haskell-cafe] Code from Haskell School of Expression hanging.<br>To: "michael rice" &lt;<a rel="nofollow" ymailto="mailto:nowgate@yahoo.com" target="_blank" href="/mc/compose?to=nowgate@yahoo.com">nowgate@yahoo.com</a>&gt;<br>
</div>Cc: <a rel="nofollow" ymailto="mailto:haskell-cafe@haskell.org" target="_blank" href="/mc/compose?to=haskell-cafe@haskell.org">haskell-cafe@haskell.org</a><br>Date: Sunday, January 30, 2011, 1:57 PM<div><div></div><div class="yiv1773221293h5"><br><br><div>Ok, in the GLFW sample program from Haskell Wiki, can you change the<br>
GLFW.openWindow line to the following, and try again?<br><br>GLFW.openWindow
 (GL.Size 400 400) [GLFW.DisplayStencilBits 8,<br>GLFW.DisplayAlphaBits 8] GLFW.Window<br><br>Does it still run?<br><br>Regards,<br>Paul Liu<br><br>On Sun, Jan 30, 2011 at 10:50 AM, michael rice &lt;<a rel="nofollow" target="_blank" href="http://mc/compose?to=nowgate@yahoo.com">nowgate@yahoo.com</a>&gt; wrote:<br>
&gt;<br>&gt; What you see below is what I get. No window opens. System Monitor shows CPU usage negligible.<br>&gt;<br>&gt; Michael<br>&gt;<br>&gt; [michael@localhost ~]$ cd ./SOE/SOE/src<br>&gt; [michael@localhost src]$ ghci<br>
&gt; GHCi, version 6.12.3: <a rel="nofollow" target="_blank" href="http://www.haskell.org/ghc/%C2%A0">http://www.haskell.org/ghc/&nbsp;</a> :? for help<br>&gt; Loading package ghc-prim ... linking ... done.<br>&gt; Loading package integer-gmp ... linking ... done.<br>
&gt; Loading package base ... linking ... done.<br>&gt; Loading package ffi-1.0 ... linking ... done.<br>&gt; Prelude&gt; :l Snowflake.lhs<br>&gt; Ok, modules loaded:
 Snowflake, SOE.<br>&gt; Prelude Snowflake&gt; main<br>&gt; Loading package old-locale-1.0.0.2 ... linking ... done.<br>&gt; Loading package old-time-1.0.0.5 ... linking ... done.<br>&gt; Loading package OpenGLRaw-1.1.0.1 ... linking ... done.<br>
&gt; Loading package GLURaw-1.1.0.0 ... linking ... done.<br>&gt; Loading package ObjectName-1.0.0.0 ... linking ... done.<br>&gt; Loading package StateVar-1.0.0.0 ... linking ... done.<br>&gt; Loading package Tensor-1.0.0.1 ... linking ... done.<br>
&gt; Loading package OpenGL-2.4.0.1 ... linking ... done.<br>&gt; Loading package GLFW-0.4.2 ... linking ... done.<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; Michael<br>&gt;<br>&gt; --- On Sun, 1/30/11, Paul L &lt;<a rel="nofollow" target="_blank" href="http://mc/compose?to=ninegua@gmail.com">ninegua@gmail.com</a>&gt; wrote:<br>
&gt;<br>&gt; From: Paul L &lt;<a rel="nofollow" target="_blank" href="http://mc/compose?to=ninegua@gmail.com">ninegua@gmail.com</a>&gt;<br>&gt;
 Subject: Re: [Haskell-cafe] Code from Haskell School of Expression hanging.<br>&gt; To: "michael rice" &lt;<a rel="nofollow" target="_blank" href="http://mc/compose?to=nowgate@yahoo.com">nowgate@yahoo.com</a>&gt;<br>&gt; Cc: "Daniel Fischer" &lt;<a rel="nofollow" target="_blank" href="http://mc/compose?to=daniel.is.fischer@googlemail.com">daniel.is.fischer@googlemail.com</a>&gt;, <a rel="nofollow" target="_blank" href="http://mc/compose?to=haskell-cafe@haskell.org">haskell-cafe@haskell.org</a><br>
&gt; Date: Sunday, January 30, 2011, 1:03 PM<br>&gt;<br>&gt; I'm the maintainer of the SOE code. This is rather puzzling, since apparently GLFW works on your setup. I don't think there is much big difference in SOE than the sample GLFW program from the Haskell Wiki.<br>
&gt; So when you run the SOE program, did you see the window but just all blank? Or you never see the window popping up?<br>&gt; Regards,<br>&gt; Paul Liu<br>&gt;<br>&gt; On Sat,
 Jan 29, 2011 at 7:34 PM, michael rice &lt;<a rel="nofollow" target="_blank" href="http://mc/compose?to=nowgate@yahoo.com">nowgate@yahoo.com</a>&gt; wrote:<br>&gt;<br>&gt; The sample program (the "active" version) here runs fine, so&nbsp; the OpenGL GLFW must have been installed properly. Must be the SOE stuff causing the problem.<br>
&gt;<br>&gt; <a rel="nofollow" target="_blank" href="http://www.haskell.org/haskellwiki/GLFW">http://www.haskell.org/haskellwiki/GLFW</a><br>&gt;<br>&gt; Michael<br>&gt;<br>&gt;<br>&gt; --- On Sat, 1/29/11, Daniel Fischer &lt;<a rel="nofollow" target="_blank" href="http://mc/compose?to=daniel.is.fischer@googlemail.com">daniel.is.fischer@googlemail.com</a>&gt; wrote:<br>
&gt;<br>&gt; From: Daniel Fischer &lt;<a rel="nofollow" target="_blank" href="http://mc/compose?to=daniel.is.fischer@googlemail.com">daniel.is.fischer@googlemail.com</a>&gt;<br>&gt; Subject: Re: [Haskell-cafe] Code from Haskell School of Expression
 hanging.<br>&gt; To: "michael rice" &lt;<a rel="nofollow" target="_blank" href="http://mc/compose?to=nowgate@yahoo.com">nowgate@yahoo.com</a>&gt;<br>&gt; Date: Saturday, January 29, 2011, 9:37 PM<br>&gt;<br>&gt; On Sunday 30 January 2011 03:27:55, michael rice wrote:<br>
&gt; &gt; I'm using the OpenGL stuff (GLFW). Same set of problems?<br>&gt;<br>&gt; No idea, I haven't used a graphics library for a long time.<br>&gt;<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>
&gt; Haskell-Cafe mailing list<br>&gt; <a rel="nofollow" target="_blank" href="http://mc/compose?to=Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>&gt; <a rel="nofollow" target="_blank" href="http://www.haskell.org/mailman/listinfo/haskell-cafe">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br><br><br><br>--<br>Regards,<br>Paul Liu<br></div></div></div></blockquote></td></tr></tbody></table><br>







      </blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Paul Liu<br><br>
</div></blockquote></td></tr></table><br>