HOpenGL - OpenGL window remains minimized

Following the famous OpenGL Haskell tutorial , I made my first HOpenGL program. Here is the code:

import Graphics.Rendering.OpenGL import Graphics.UI.GLUT main = do (progname, _) <- getArgsAndInitialize createWindow "Hello World" displayCallback $= clear [ ColorBuffer ] mainLoop 

It compiles and starts, but the window simply does not appear - after the “maximize” command you can see it for some fractions of a second, and then minimize it. Can this problem be connected to my ATI Radeon graphics card?

PS OS - Ubuntu 10.10, the program is compiled with GHC 7.0.3.

+4
source share
1 answer

It seems that when installing the haskell platform from the official repo. Which library was missing, I still remain a mystery, and I'm not sure I want to delve into it. Trying to get all the missing Haskell libraries yourself is BDSM.

Edit: The window minimizes only when starting from the terminal. Everything works fine (+/-) if run from nautilus.

+2
source

All Articles