[GHC] #13641: Compile error while performing stack upgrade