GHC + SOE installation instructions for Windows Vista and Windows 7

  1. Download the GHC msi installation file from http://www.cs.dartmouth.edu/~cs8/GHC-6.8.3.MSI . For some reason it will be renamed to GHC-6.8.3.man. Rename it to GHC-6.8.3.msi. The icon will change to an installer icon.
  2. Double click on this icon, and run the installer. Choose the default installation. You may need to do this as administrator.
  3. Run "Explorer" (not Internet Explorer) to navigate to My Computer/Local Disk/ghc/ and drag the glfw-0.3 folder into the ghc-6.8.3 folder.
  4. Download http://www.cs.dartmouth.edu/~cs8/SOE-20071003.zip and save and extract it.
  5. Find the Command Prompt program in the Start Menu (under accessories). Right click on its icon and select "Run as administrator". Type in the following four commands (press return after each command):
    cd c:\ghc\ghc-6.8.3\glfw-0.3
    runhaskell Setup.hs configure
    runhaskell Setup.hs build
    runhaskell Setup.hs install
    
  6. Open the SOE folder extracted earlier, then open src, then double click Picture.lhs. In the command window that appears type main and hit return, the test window should appear. You can exit the window by clicking in the black background. Control-C will exit the program.
  7. The GHC-6.8.3.msi installer can also remove GHC from your computer.

If you want to install the latest GHC you can read about it at http://www.haskell.org/soe/software1.htm but be warned that installing the necessary OpenGL software is very complicated! The software that the directions above installs will do everything needed for CS 8.