[GHC] #10378: min/max for Double/Float instances are incorrect