
You missed the comma after the first 8.
On Sun, Jan 30, 2011 at 12:15 PM, michael rice
The expression (the swapped line) on line 12 is all on one line in my code.
Michael
======================
[michael@localhost ~]$ ghc --make rat2.hs [1 of 1] Compiling Main ( rat2.hs, rat2.o )
rat2.hs:12:37: Couldn't match expected type `(Int -> DisplayBits) -> t -> DisplayBits' against inferred type `DisplayBits' In the expression: DisplayStencilBits 8 DisplayAlphaBits 8 In the second argument of `openWindow', namely `[DisplayStencilBits 8 DisplayAlphaBits 8]' In a stmt of a 'do' expression: openWindow (Size 400 400) [DisplayStencilBits 8 DisplayAlphaBits 8] Window [michael@localhost ~]$
--- On *Sun, 1/30/11, Paul L
* wrote: From: Paul L
Subject: Re: [Haskell-cafe] Code from Haskell School of Expression hanging. To: "michael rice" Cc: haskell-cafe@haskell.org Date: Sunday, January 30, 2011, 1:57 PM Ok, in the GLFW sample program from Haskell Wiki, can you change the GLFW.openWindow line to the following, and try again?
GLFW.openWindow (GL.Size 400 400) [GLFW.DisplayStencilBits 8, GLFW.DisplayAlphaBits 8] GLFW.Window
Does it still run?
Regards, Paul Liu
On Sun, Jan 30, 2011 at 10:50 AM, michael rice
http://mc/compose?to=nowgate@yahoo.com> wrote: What you see below is what I get. No window opens. System Monitor shows
CPU usage negligible.
Michael
[michael@localhost ~]$ cd ./SOE/SOE/src [michael@localhost src]$ ghci GHCi, version 6.12.3: http://www.haskell.org/ghc/ http://www.haskell.org/ghc/%C2%A0:? for help Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base ... linking ... done. Loading package ffi-1.0 ... linking ... done. Prelude> :l Snowflake.lhs Ok, modules loaded: Snowflake, SOE. Prelude Snowflake> main Loading package old-locale-1.0.0.2 ... linking ... done. Loading package old-time-1.0.0.5 ... linking ... done. Loading package OpenGLRaw-1.1.0.1 ... linking ... done. Loading package GLURaw-1.1.0.0 ... linking ... done. Loading package ObjectName-1.0.0.0 ... linking ... done. Loading package StateVar-1.0.0.0 ... linking ... done. Loading package Tensor-1.0.0.1 ... linking ... done. Loading package OpenGL-2.4.0.1 ... linking ... done. Loading package GLFW-0.4.2 ... linking ... done.
Michael
--- On Sun, 1/30/11, Paul L
http://mc/compose?to=ninegua@gmail.com> wrote:
From: Paul L
http://mc/compose?to=ninegua@gmail.com Subject: Re: [Haskell-cafe] Code from Haskell School of Expression
To: "michael rice"
http://mc/compose?to=nowgate@yahoo.com Cc: "Daniel Fischer"
http://mc/compose?to=daniel.is.fischer@googlemail.com>, haskell-cafe@haskell.org http://mc/compose?to=haskell-cafe@haskell.org Date: Sunday, January 30, 2011, 1:03 PM 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. So when you run the SOE program, did you see the window but just all blank? Or you never see the window popping up? Regards, Paul Liu
On Sat, Jan 29, 2011 at 7:34 PM, michael rice
http://mc/compose?to=nowgate@yahoo.com> wrote: The sample program (the "active" version) here runs fine, so the OpenGL GLFW must have been installed properly. Must be the SOE stuff causing the
hanging. problem.
http://www.haskell.org/haskellwiki/GLFW
Michael
--- On Sat, 1/29/11, Daniel Fischer
http://mc/compose?to=daniel.is.fischer@googlemail.com> wrote:
From: Daniel Fischer
http://mc/compose?to=daniel.is.fischer@googlemail.com Subject: Re: [Haskell-cafe] Code from Haskell School of Expression
hanging.
To: "michael rice"
http://mc/compose?to=nowgate@yahoo.com Date: Saturday, January 29, 2011, 9:37 PM
On Sunday 30 January 2011 03:27:55, michael rice wrote:
I'm using the OpenGL stuff (GLFW). Same set of problems?
No idea, I haven't used a graphics library for a long time.
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://mc/compose?to=Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- Regards, Paul Liu
-- Regards, Paul Liu