Re: [Haskell-cafe] Sometimes I wish there was a global variable

2009-03-23 Thread Jake McArthur
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rafael Cunha de Almeida wrote: | Hello, | | I am writing a OpenGL program in haskell, it can be found in: | http://github.com/aflag/galo/tree/master | But I hope this e-mail will be self-contained :). | | My main function goes like this: | (

Re: [Haskell-cafe] Sometimes I wish there was a global variable

2009-03-21 Thread Gregory Collins
Rafael Cunha de Almeida writes: > My main function goes like this: > (...) > rotX <- newIORef (0.0::GLfloat) > rotY <- newIORef (0.0::GLfloat) > pos <- newIORef (0.0::GLfloat, 0.0, 0.0) > > displayCallback $= display (map f range) rotX rotY pos > > keyboardMouseCallback $=

[Haskell-cafe] Sometimes I wish there was a global variable

2009-03-21 Thread Rafael Cunha de Almeida
Hello, I am writing a OpenGL program in haskell, it can be found in: http://github.com/aflag/galo/tree/master But I hope this e-mail will be self-contained :). My main function goes like this: (...) rotX <- newIORef (0.0::GLfloat) rotY <- newIORef (0.0::GLfloat) pos <- new