<div dir="ltr"><div><div>Hi!<br><br></div>I have made a Powershell script that sets up a GHC build environment on Windows from scratch. It's at <a href="https://github.com/melted/getghc">https://github.com/melted/getghc</a>. It largely follows the instructions at <a href="https://ghc.haskell.org/trac/ghc/wiki/Building/Preparation/Windows/MSYS2">https://ghc.haskell.org/trac/ghc/wiki/Building/Preparation/Windows/MSYS2</a>. It has no dependencies aside from Powershell 3.0.<br>
<br></div><div>The reason I made it was to make it easier to set up a build bot on a clean machine. But it's probably generally useful for people who want to develop GHC on Windows.<br><br></div><div>Usage:<br></div><div>
- Put the script in an empty directory<br></div><div>- Run it<br></div><div>- Hope for the best<br><br></div><div>Potential problems:<br></div><div>- If Python 2.7 is already installed and not on the path, the script wont install it, and msys wont pick up the path. Solution: Add the path to python in the control panel.<br>
</div><div>- Powershell wont run unsigned scripts by default. The error message will give a hint how to disable that. I will add a signed version as soon as I can figure out how.<br><br></div><div>Niklas<br></div></div>