Fix :info pretty-printing of UNPACKed fields
This patch: * Ensures that we do not pretty-print a field like `foo :: {-# UNPACK #-} !Int` as `foo :: ! {-# UNPACK -#} Int` (as we were doing before) when running the `:info` command. * Prevents coercions that arise from `UNPACK`ed fields (e.g., such as when one unpacks a newtype) from being printed in `:info` output unless `-dppr-debug` is enabled. Fixes #25651.
Showing
- compiler/GHC/Iface/Syntax.hs 3 additions, 3 deletionscompiler/GHC/Iface/Syntax.hs
- testsuite/tests/backpack/should_fail/T19244a.stderr 2 additions, 2 deletionstestsuite/tests/backpack/should_fail/T19244a.stderr
- testsuite/tests/ghci/scripts/T9881.stdout 11 additions, 11 deletionstestsuite/tests/ghci/scripts/T9881.stdout
- testsuite/tests/interface-stability/base-exports.stdout 18 additions, 21 deletionstestsuite/tests/interface-stability/base-exports.stdout
- testsuite/tests/interface-stability/base-exports.stdout-javascript-unknown-ghcjs 65 additions, 65 deletions...ce-stability/base-exports.stdout-javascript-unknown-ghcjs
- testsuite/tests/interface-stability/base-exports.stdout-mingw32 74 additions, 83 deletions...ite/tests/interface-stability/base-exports.stdout-mingw32
- testsuite/tests/interface-stability/base-exports.stdout-ws-32 85 additions, 88 deletions...suite/tests/interface-stability/base-exports.stdout-ws-32
Loading
Please register or sign in to comment