`mkProjection: The impossible happened` panic with Template Haskell splice
The following program will cause GHC 9.2.1-rc1 to panic:
{-# LANGUAGE TemplateHaskell #-}
module Bug where
import Language.Haskell.TH
f = $(pure (ProjectionE []))
$ ~/Software/ghc-9.2.1-rc1/bin/ghc Bug.hs
[1 of 1] Compiling Bug ( Bug.hs, Bug.o, Bug.dyn_o )
ghc: panic! (the 'impossible' happened)
(GHC version 9.2.0.20210821:
mkProjection: The impossible happened