[GHC] #12222: ghc panic kindFunResult with template haskell 'isInstance'