Skip to content

GHC panics while installing

Summary

Just installed Stack and want to compile a program, so it tries to download and install GHC, etc. but fails in the process.

Steps to reproduce

  1. Install Stack if already not installed (I'm using v2.7.5 by the way)
  2. Make a new project or use an existing one
  3. Use a text editor to modify the 'resolver:' line in the 'stack.yaml' file to 'resolver: lts-15.3'
  4. Use any terminal (PowerShell, Command Prompt, Bash, etc.) to 'stack build' or 'stack test' the project
  5. You may now encounter the same result as I do have: output.txt

P.S.: I tried disabling the antivirus, the firewall, and running the terminals with administrator permissions, but always had the same result.

Expected behavior

Download and install GHC, etc. correctly and then try to compile the program.

Environment

  • GHC version used: 8.2.2

Optional:

  • Operating System: Windows 10
  • System Architecture: x64
Edited by fermaq
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information