"Impossible happened" panic on GHC 9.0.1
Summary
After adding Inline pragmas in a dependency I get the following compiler error:
[12 of 25] Compiling StructureKit.TouchTrackingHashMap
ghc: panic! (the 'impossible' happened)
(GHC version 9.0.1:
applyTypeToArgs
Expression: $fAltList4 @a_akQd (Nil @a_akQd) ww2_akQh
Type: forall {a} {b}.
List (b -> a) -> List (b -> a) -> List (b -> a)
Args: [TYPE: a_akQd, Nil @a_akQd, ww2_akQh]
Args': [Nil @a_akQd, ww2_akQh]
Call stack:
CallStack (from HasCallStack):
callStackDoc, called at compiler/GHC/Utils/Outputable.hs:1230:37 in ghc:GHC.Utils.Outputable
pprPanic, called at compiler/GHC/Core/Utils.hs:276:17 in ghc:GHC.Core.Utils
Steps to reproduce
- Check out https://github.com/nikita-volkov/structure-kit/tree/ghc-bug
- Run
stack build
Environment
- GHC version used: 9.0.1
Optional:
- Operating System: macOS 11.2.3
- System Architecture: Intel