.stack/programs/x86_64-osx/ghc-8.0.1/bin/ghc failed to compile a sanity check.
getting ghc panic issue, when building local app project:
CMake Error at stack_build.cmake:21 (message):
The GHC located at
/Users/r/.stack/programs/x86_64-osx/ghc-8.0.1/bin/ghc failed to
compile a sanity check. Please see:
http://docs.haskellstack.org/en/stable/install_and_upgrade/
for more information. Exception was:
Received ExitFailure 1 when running
Raw command: /Users/r/.stack/programs/x86_64-osx/ghc-8.0.1/bin/ghc
Standard error:
ghc: panic! (the 'impossible' happened)
(GHC version 8.0.1 for x86_64-apple-darwin):
toStgWord: Unknown platformWordSize: 0
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug