GHC compiler crash
Summary
GHC-8.6.5 crashes
Steps to reproduce
- create a stack project with resolver LTS Haskell 14.20 (ghc-8.6.5)
$ stack new example --resolver=lts-14.20
- go to the created directory:
$ cd example
- build it
$ stack build
I receive the following error
$ stack build
ghc: panic! (the 'impossible' happened)
(GHC version 8.6.5 for x86_64-apple-darwin):
Prelude.chr: bad argument: 1543503875
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
-- While building simple Setup.hs (scroll up to its section to see the error) using:
/Users/elkasimi/.stack/programs/x86_64-osx/ghc-8.6.5/bin/ghc-8.6.5 -rtsopts -threaded -clear-package-db -global-package-db -hide-all-packages -package base -main-is StackSetupShim.mainOverride -package Cabal-2.4.0.1 /Users/elkasimi/.stack/setup-exe-src/setup-mPHDZzAJ.hs /Users/elkasimi/.stack/setup-exe-src/setup-shim-mPHDZzAJ.hs -o /Users/elkasimi/.stack/setup-exe-cache/x86_64-osx/tmp-Cabal-simple_mPHDZzAJ_2.4.0.1_ghc-8.6.5
Process exited with code: ExitFailure 1
## Expected behavior
Project compiled successfully
## Environment
* GHC version used: ghc-8.6.5
Optional:
* Operating System: MacOS Monetary 12.5 Apple M1 chip
* System Architecture: