To further modularize the OpenGL/OpenAL packages, a new StateVar package has been released to Hackage. It contains state variables, which are references in the IO monad, like IORefs or parts of the OpenGL state. Cheers, S.