[GHC] #7975: "impossible" failure while type checking