Can't get Freeglut to work with Haskell on Windows
问题 Here is my source code I'm trying to get to work: In Main.hs: import Graphics.Rendering.OpenGL import Graphics.UI.GLUT import Bindings import Data.IORef main = do (progname,_) <- getArgsAndInitialize createWindow "Hello World" reshapeCallback $= Just reshape keyboardMouseCallback $= Just keyboardMouse angle <- newIORef 0.0 displayCallback $= display idleCallback $= Just idle mouseWheelCallback $= Just mouseWheel mainLoop In Bindings.hs: module Bindings where import Graphics.Rendering.OpenGL