can't find module 'GL' 
Author Message
 can't find module 'GL'

Using ghc-6.0, I tried to compile OpenGL program first.hs in
http://www.*-*-*.com/ ~haskell/hopengl/files/first.hs

this code imports GLUT and GL.

but it says
Can't find module 'GL'

it seems it finds GLUT but not GL.

Where are GLUT and GL module in ghc folder?
If it's not there, where can i get it?

thanks

========code here ==============================

{-
HOpenGL Tutorial - Andre W B Furtado - 2001
www.cin.ufpe.br/~haskell/hopengl/

** Your First (and Simple) Program **
-}

import GLUT
import GL

myInit :: IO ()
myInit = do
        clearColor (Color4 0.0 0.0 0.0 0.0)
        matrixMode Projection
        loadIdentity
        ortho 0.0 1.0 0.0 1.0 (-1.0) 1.0

display :: DisplayAction
display = do
        clear [ColorBufferBit]
        flush

main :: IO ()
main = do
        GLUT.init Nothing
        createWindow "Hello World" (return ()) [ Single, GLUT.Rgb ]
                        (Just (WindowPosition 100 100))
                        (Just (WindowSize     300 250))
        myInit
        displayFunc (display)
        mainLoop



Tue, 27 Dec 2005 01:50:20 GMT  
 can't find module 'GL'

Quote:

> Where are GLUT and GL module in ghc folder?
> If it's not there, where can i get it?

http://haskell.org/HOpenGL/

--



Sat, 31 Dec 2005 08:57:56 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Using CGI module with 'canned queries'

2. Minor thoughts on 'Find' module

3. It's not bad canned meat...

4. It's not bad canned meat...

5. It's not bad canned meat...

6. It's not bad canned meat...

7. stream('file','c','seek ='x) problem

8. Wanted: Hints'n'Tips'n'Bits'n'Bobs

9. There is an 'U'|'X'|'W'|'Z'|'-' in an arithmetic operand

10. Finding a module's PDS

11. Compiler can't find modules!

12. ILU 2.0 alpha14 (Win32)-can't find iluimport module

 

 
Powered by phpBB® Forum Software