Stack test output garbled on MINGW64
问题 I'm running GHC using Stack on Windows 10, and using Git Bash (MINGW64) for much of my daily workflow. That includes using GHC and GHCi, which generally works fine. However, when I run stack test from MINGW64, the output is garbled by ANSI color codes: $ stack test UC-0.1.0.0: test (suite: UC-test) [?25lSorting Group 1: [2K[1F prop1: [[92mOK, passed 100 tests[0m] [2K[1F prop2: [[92mOK, passed 100 tests[0m] Properties Total Passed [92m2[0m [92m2[0m Failed 0 0 Total [92m2[0m [92m2[0m [?25h