You will need tools from six different sources, so have some patience to install them all. The good news is that you may find the tools useful in different situations as well.
To install Cygwin, go to the Cygwin website and download the small (250k) installation program. During installation it asks for:
to test whether it works:
make --version |
Download Tortoise SVN here and install it.
to test whether it works:
Open the file explorer, and rightclick any directory.
A context menu Tortoise SVN should be present.
square x = x*x main = putStrLn (show (square 5)) |
module Test where square x = x*x main = putStrLn (show (square 5)) |
autoconf
./configure
ghc --make Setup.hs -o setup -package Cabal
./setup configure
./setup build
./setup install
|
Download and install it as follows:
autoconf
./configure
make build
make install
|
Download and install it as follows:
./configure --with-ghc=d:/ghc/ghc-6.8/bin/ghc.exe --with-gcc=d:/cygwin/bin/gcc
./configure --with-ghc=c:/ghc/ghc-6.8.2/bin/ghc.exe --with-gcc=/bin/gcc --with-cpp=/bin/cpp --with-ehc-unixtool-prefix="c:/cygwin" --with-uuagc-ehc-ast-options="" --with-uuagc-ehc-sem-options="" --with-gcc-ehc-options=""
make 8/ehc
|
cd testgrinc
../bin/8/ehc.exe -cexe sum.hs
sum.exe
|