| 40 | | See [wiki:Building/Windows]. !ToDo: move the relevant parts of the docs here. |
| | 40 | Installing the following will get you a working build environment with MSYS (ToDo: add Cygwin). For your convenience we've cached a working set of build tools that you can download. |
| | 41 | |
| | 42 | * First install a recent stable version of [http://www.haskell.org/ghc/download.html GHC]. |
| | 43 | * Install MinGW: [http://www.haskell.org/ghc/tools/Win32/MinGW-5.1.4.exe] |
| | 44 | * Install MSYS: |
| | 45 | * [http://www.haskell.org/ghc/tools/Win32/MSYS-1.0.10.exe] |
| | 46 | * [http://www.haskell.org/ghc/tools/Win32/msysDTK-1.0.1.exe] |
| | 47 | * [http://www.haskell.org/ghc/tools/Win32/msysCORE-1.0.11-20080826.tar.gz] (this is a tar file, which you have to unpack in `c:/msys/1.0`, or wherever you installed MSYS. Note that you can't do that using an MSYS shell, because you can't overwrite the files in use, so make a copy of `c:/msys/1.0`, unpack it there, and then rename the copy back to `c:/msys/1.0`). |
| | 48 | |
| | 49 | The next three are just zip files, you can unpack them wherever you like, but you need to ensure that the programs can be found on your `PATH`. I usually put all these in `c:/tools` (NB. don't put them anywhere in `c:/msys`, that's special). |
| | 50 | |
| | 51 | * Install Happy: [http://www.haskell.org/ghc/tools/Win32/happy-1.17.zip] |
| | 52 | * Install Alex: [http://www.haskell.org/ghc/tools/Win32/alex-2.2.zip] |
| | 53 | * Install Haddock: [http://www.haskell.org/ghc/tools/Win32/haddock-0.8-Win32.zip] |
| | 54 | |
| | 55 | Now set your `PATH`. We recommend doing this by creating a file `.profile` in your home directory (by default `c:/msys/1.0/home/<username>`). The contents of your `.profile` should be something like this: |
| | 56 | |
| | 57 | {{{ |
| | 58 | PATH=/c/mingw/bin:/usr/bin:/bin:/c/ghc/ghc-6.10.1/bin:/c/tools:/c/windows/system32 |
| | 59 | }}} |
| | 60 | |
| | 61 | Modify the above according to where you installed things, and change the GHC version appropriately. |
| | 62 | |
| | 63 | See also [wiki:Building/Windows]. |