Skip to content

Chocolatey installer for GHC doesn't put mingw/bin into PATH

Summary

The Chocolatey installer only puts $GHC/bin into the PATH. For example:

C:\ProgramData\chocolatey\lib\ghc.8.6.5\tools\ghc-8.6.5\bin

It does not put $GHC/mingw/bin into PATH. For example:

C:\ProgramData\chocolatey\lib\ghc.8.6.5\tools\ghc-8.6.5\mingw\bin

Maybe it should because some Haskell projects do not build out of the box without it. For example hw-dsv.

Steps to reproduce

Install GHC via Chocolatey.

Expected behavior

$GHC/mingw/bin should be in PATH and packages like hw-dsv should build out of the box.

Environment

  • GHC version used: ghc-8.6.5 but possibly affects all GHC versions

Optional:

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