Installing HGraphics - step by step
1 - Install Cygwin (this step is only for windows)
Cygwin is a UNIX environment for Windows.
1.1 - download and excecute the setup.exe
It is necessary set some envaiorment variables
On windows just type, for example:
c:\win2k>path = d:\cygwin\usr\ghc\bin;%path%;.
c:\win2k>set SHELL = d:\cygwin\bin\sh
c:\win2k>set MAKE_MODE = UNIX
c:\win2k>set TMPDIR = d:\cygwin\tmp
c:\win2k>set HOME = d:\cygwin\home\edson
2 - Install ghc (glasgow haskell compiler)
3 - Install greencard
Green Card is a foreign function interface preprocessor for Haskell.
3.1 - It does not necessary install all greencard.
It does work if you only put the binary file into your path enviorment variable.
4 - Install HOpenGL
HOpenGL is a Haskell binding for the OpenGL graphics API (GL 1.2 / GLU 1.1) and the
portable OpenGL utility toolkit GLUT.
4.1 if you are installing on cygwin take a look in
http://www.pms.informatik.uni-muenchen.de/mitarbeiter/panne/cygwin/opengl_glut.html
5 - and finally Install the HGraphics
Download and unzip the hgraphics.zip
edit the Makefile (it is in the zipfile) to look at the right place the folows variables