[Haskell-beginners] graphics.gloss errors

Gregory Guthrie guthrie at mum.edu
Tue Jun 5 22:23:42 CEST 2012


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-Gloss.html

>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




More information about the Beginners mailing list