[GHC] #10056: Inconsistent precedence of ~