Skip to content

Fix precedence handling for Data.Fixed's Show instance (#16031)

Sven Tennie requested to merge supersven/ghc:Data.Fixed_show_precedence into master

This merge request solves #16031 (closed).

The choice to show parentheses for negatives if the precedence is greater than 6 (p > 6), was taken a bit randomly. But it works fine for Integers and Ints and I think that Fixed numbers should be very similar ...

Thanks in advance for reviewing!

Merge request reports