[GHC] #12034: Template Haskell + hs-boot = Not in scope during type checking, but it passed the renamer