
“C:\msys64\msys2_shell.cmd -mingw64 -mintty”
Won’t work for you as it spawns a new process using mintty as your terminal emulator.
If I remember correctly you have a setup where you use bash directly in emacs. In which case you just need
To set the environment variables and add /mingw64/bin to your path.
I would personally avoid the use of mintty because of how it implements pty. Lots of interactive programs don’t work
Correctly under it, including ghci where we need specific hacks to work around some of it’s issues https://github.com/mintty/mintty/issues/56.
From: Simon Peyton Jones via ghc-devs
Sent: Monday, March 26, 2018 11:03
To: Shao, Cheng; ghc-devs@haskell.org
Subject: RE: Windows
If the build environment is managed by an MSYS2 installation, then the MinGW64 shell startup script automatically sets up "MSYSTEM" for you. It can be launched like "C:\msys64\msys2_shell.cmd -mingw64 -mintty".
Well I just followed the Method A instructions at
https://ghc.haskell.org/trac/ghc/wiki/Building/Preparation/Windows
Are you saying that I should run “C:\msys64\msys2_shell.cmd -mingw64 -mintty" just once, after installing? Or repeatedly? Or that I should somehow us it as my main shell? And what does that commend actually do?
Sorry to be dense
Simon
From: ghc-devs