Re: [Haskell-beginners] graphics.gloss errors

Apparently I needed to upgrade my examples, the API seems to have changed across versions. -------------------------------------------
Subject: graphics.gloss errors
Why do I get this error, when trying the first line example from: http://hackage.haskell.org/packages/archive/gloss/1.0.0.0/doc/html/Graphics-...
ghci GHCi, version 7.4.1: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base ... linking ... done. Prelude> :m Graphics.Gloss Prelude Graphics.Gloss> let main = displayInWindow "My Window" (200, 200) (10, 10) white (Circle 80) <interactive>:4:12: Not in scope: `displayInWindow'
Also I notice that cabal shows the current version of GLFW as GLFW-0.5.0.1, But their web-site shows it as 2.7.5 - big difference?!
I have: Gloss 1.7.4.1 GLUT 2.3.0.0 GLFW 0.5.0.1 Opengl 2.5.0.0

On Tue, Jun 5, 2012 at 10:36 PM, Gregory Guthrie
Apparently I needed to upgrade my examples, the API seems to have changed across versions.
Right, since the fullscreen mode was introduced, the API is "display displayMode backgroundColor picture" where displayMode is Window or Fullscreen (with relevant title, size and position details). So :
display (Window "My Window" (200, 200) (10, 10)) white (Circle 80)
-- Jedaï
participants (2)
-
Chaddaï Fouché
-
Gregory Guthrie