[GHC] #10226: Regression in constraint solver from 7.8 to 7.10