Personal tools

Informatics 1 Windows Installation

From HaskellWiki

(Difference between revisions)
Jump to: navigation, search
Current revision (11:52, 12 October 2009) (edit) (undo)
 
(2 intermediate revisions not shown.)
Line 1: Line 1:
 +
== 2009 ==
 +
 +
Step 1. Install the Haskell Platform from
 +
http://www.haskell.org/platform
 +
 +
Step 2. Use Cabal to upgrade QuickCheck to version 2
 +
http://haskell.org/haskellwiki/Cabal-Install
 +
 +
 +
== 2008 ==
 +
Step 1. Install ghc 6.8.3 installation executable here
Step 1. Install ghc 6.8.3 installation executable here
http://haskell.org/ghc/dist/6.8.3/ghc-6.8.3-i386-windows.exe
http://haskell.org/ghc/dist/6.8.3/ghc-6.8.3-i386-windows.exe
Line 13: Line 24:
Step 6. Pull up windows command shell. Verify that ghc is in your path by typing ghc at the prompt. If it is not, go to Control Panel -> System -> Advanced -> Environment Variables and edit Path to add "c:\ghc\ghc-6.8.3\bin\" to Path.
Step 6. Pull up windows command shell. Verify that ghc is in your path by typing ghc at the prompt. If it is not, go to Control Panel -> System -> Advanced -> Environment Variables and edit Path to add "c:\ghc\ghc-6.8.3\bin\" to Path.
-
Step 7. in Command shell execute the following commands
+
Step 7. in Command shell (or other shell like cygwin shell) execute the following commands
-
> cd c:\ghc\ghc-6.8.3\libraries\GLFW
+
* > cd c:\ghc\ghc-6.8.3\libraries\GLFW
-
> runghc Setup.hs configure
+
* > runghc Setup.hs configure
-
> runghc Setup.hs build
+
* > runghc Setup.hs build
-
> runghc Setup.hs install
+
* > runghc Setup.hs install
This installs the GLFW package. The OpenGL package comes with the standard installation.
This installs the GLFW package. The OpenGL package comes with the standard installation.
-
You should now be able to load the tutorial1.hs file with ghci via
+
Step 8. install darcs for Windows. see instructions on how to install pre-built binaries here
-
> ghci tutorial1.hs
+
* http://wiki.darcs.net/DarcsWiki/CategoryBinaries
 +
 
 +
Step 9. compile and install QuickCheck 2 development version
 +
* > cd c:\ghc
 +
* > darcs get http://www.cs.chalmers.se/~bringert/darcs/QuickCheck/
 +
* > runghc Setup.lhs configure
 +
* > runghc Setup.lhs build
 +
* > runghc Setup.lhs install
 +
 
 +
 
 +
You should now be able to load the tutorials with ghci via
 +
* > ghci tutorialN.hs {N = 1,2...}

Current revision

1 2009

Step 1. Install the Haskell Platform from http://www.haskell.org/platform

Step 2. Use Cabal to upgrade QuickCheck to version 2 http://haskell.org/haskellwiki/Cabal-Install


2 2008

Step 1. Install ghc 6.8.3 installation executable here http://haskell.org/ghc/dist/6.8.3/ghc-6.8.3-i386-windows.exe

Step 2. Install it to default directory c:\ghc\ghc-6.8.3

Step 3. create directory c:\ghc\ghc-6.8.3\libraries

Step 4. Download GLFW source zip here http://hackage.haskell.org/packages/archive/GLFW/0.3/GLFW-0.3.tar.gz

Step 5. untar into c:\ghc\ghc-6.8.3\libraries. This will create a subdirectory GLFW-0.3

Step 6. Pull up windows command shell. Verify that ghc is in your path by typing ghc at the prompt. If it is not, go to Control Panel -> System -> Advanced -> Environment Variables and edit Path to add "c:\ghc\ghc-6.8.3\bin\" to Path.

Step 7. in Command shell (or other shell like cygwin shell) execute the following commands

  • > cd c:\ghc\ghc-6.8.3\libraries\GLFW
  • > runghc Setup.hs configure
  • > runghc Setup.hs build
  • > runghc Setup.hs install

This installs the GLFW package. The OpenGL package comes with the standard installation.

Step 8. install darcs for Windows. see instructions on how to install pre-built binaries here

Step 9. compile and install QuickCheck 2 development version


You should now be able to load the tutorials with ghci via

  • > ghci tutorialN.hs {N = 1,2...}