33# Developing on Windows #
44
55On Windows, Stack comes with an installation of [ MSYS2] ( https://www.msys2.org/ ) .
6- MSYS2 will be used by Stack to provide a Unix-like shell and environment for
7- Stack. This may be necessary for installing some Haskell packages, such as those
8- which use ` configure ` scripts, or if your project needs some additional tools
9- during the build phase.
6+ The MINGW64 (MINGW32 on 32-bit Windows) environment of MSYS2 will be used by
7+ Stack to provide a Unix-like shell and environment for Stack. This may be
8+ necessary for installing some Haskell packages, such as those which use
9+ ` configure ` scripts, or if your project needs some additional tools during the
10+ build phase.
1011
1112No matter which terminal software you choose (Windows Terminal, Console Windows
1213Host, Command Prompt, PowerShell, Git bash or any other) you can use this
@@ -26,11 +27,18 @@ example, help about the operation `--sync` (or `-S`) can be obtained with
2627` stack exec -- pacman -Sh ` .
2728
2829Command ` stack path --bin-path ` to see the PATH in the Stack environment. On
29- Windows, it includes the ` \mingw64\bin ` , ` \usr\bin ` and ` \usr\local\bin `
30- directories of the Stack-supplied MSYS2. If your executable depends on files
31- (for example, dynamic-link libraries) in those directories and you want ro run
32- it outside of the Stack environment, you will need to ensure copies of those
33- files are on the PATH.
30+ Windows, it includes the ` \mingw64\bin ` (` \mingw32\bin ` on 32-bit Windows),
31+ ` \usr\bin ` and ` \usr\local\bin ` directories of the Stack-supplied MSYS2. If your
32+ executable depends on files (for example, dynamic-link libraries) in those
33+ directories and you want to run it outside of the Stack environment, you will
34+ need to ensure copies of those files are on the PATH.
35+
36+ Command ` stack path --extra-include-dirs ` and ` stack path --extra-library-dirs `
37+ to see the extra directories searched for C header files or system libraries
38+ files in the Stack environment. On Windows, it includes the ` \mingw64\include `
39+ (` mingw32\include ` on 32-bit Windows) (include) and the ` \mingw64\lib ` and
40+ ` \mingw64\bin ` directories (` mingw32\lib ` and ` mingw32\bin ` on 32-bit Windows)
41+ (library) of the Stack-supplied MSYS2.
3442
3543## Updating the Stack-supplied MSYS2 ##
3644
0 commit comments