Skip to content

can't decompose ghc.exe path

Summary

When installing GHC to a school PC without admin privileges, it fails to start up with the following error:

O:\Haskell\8.6.5\bin>ghc
ghc: panic! (the 'impossible' happened)
  (GHC version 8.6.5 for x86_64-unknown-mingw32):
        can't decompose ghc.exe path: "O:\\Haskell\\8.6.5\\bin\\ghc.exe"

Steps to reproduce

I downloaded the installer from https://www.haskell.org/platform/windows.html and ran it, saying "no" every time it asked me if I want to run it as an administrator. After installing, the files are there, but trying to run them results in the above error.

Expected behavior

ghc should work without producing the error.

Environment

  • GHC version used: 8.6.5

Optional:

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