Fix precedence handling for Data.Fixed's Show instance (#16031)
authorSven Tennie <sven.tennie@gmail.com>
Wed, 26 Dec 2018 11:04:36 +0000 (12:04 +0100)
committerBen Gamari <ben@smart-cactus.org>
Sun, 6 Jan 2019 12:27:09 +0000 (07:27 -0500)
commit01b60b0e1ee57f882c5b729854343916c2295c51
treebe1bfafd1e9a4dafc8c1a412b7c83fba3993b25a
parentc121e33f9b039acf2ac6939af8bfafe593560039
Fix precedence handling for Data.Fixed's Show instance (#16031)

Use `showsPrec` instead of `show` to respect the precedence of the surrounding
context.
libraries/base/Data/Fixed.hs
libraries/base/tests/data-fixed-show-read.hs
libraries/base/tests/data-fixed-show-read.stdout