https://gitlab.haskell.org/ghc/ghc/-/issues/25064
When I tried to compile the Bug.hs (which actually contains
type errors) using GHC 9.6.6 and Stackage LTS 22.28, GHC panics with
lookupIdSubst
:
% stack build
bug> configure (lib)
Configuring bug-0.1.0.0...
bug> build (lib) with ghc-9.6.6
Preprocessing library for bug-0.1.0.0..
Building library for bug-0.1.0.0..
[1 of 1] Compiling Bug
<no location info>: error:
panic! (the 'impossible' happened)
GHC version 9.6.6:
lookupIdSubst
$dPrimMonad_a1Ft
InScope {m_a1pT a_a1pU $dPrimMonad_a1pV table getNext nodeSymbol
newRule g h}
Call stack:
CallStack (from HasCallStack):
callStackDoc, called at compiler/GHC/Utils/Panic.hs:189:37 in ghc:GHC.Utils.Panic
pprPanic, called at compiler/GHC/Core/Subst.hs:197:17 in ghc:GHC.Core.Subst
CallStack (from HasCallStack):
panic, called at compiler/GHC/Utils/Error.hs:454:29 in ghc:GHC.Utils.Error
Please report this as a GHC bug: https://www.haskell.org/ghc/reportabug
Error: [S-7282]
Stack failed to execute the build plan.
While executing the build plan, Stack encountered the error:
[S-7011]
While building package bug-0.1.0.0 (scroll up to its section to see the error) using:
/Users/sakai/.stack/setup-exe-cache/aarch64-osx/Cabal-simple_HwdwpEmb_3.10.3.0_ghc-9.6.6 --verbose=1 --builddir=.stack-work/dist/aarch64-osx/ghc-9.6.6 build lib:bug --ghc-options ""
Process exited with code: ExitFailure 1