[GHC] #9745: qual_pkg panic with template haskell