[GHC] #7826: GHC internal error: `a' is not in scope during type checking, but it passed the renamer