GLUT error in Haskell program
I am using OpenGL with Haskell. I tried the sample program, it is compiled using ghc Compiler, but when I run it I get this error
user error (unknown GLUT input muffler)
I searched about this, but most of the answers related to this problem: Mac OS X and Windows. But I am getting this error on Ubuntu 15.
This question was previously asked but related to windows
Below is an example of the program I used.
import Graphics.Rendering.OpenGL
import Graphics.UI.GLUT
main :: IO ()
main = do
(_progName, _args) <- getArgsAndInitialize
_window <- createWindow "Hello World"
displayCallback $= display
mainLoop
display :: IO ()
display = do
clear [ ColorBuffer ]
+3
source to share