[Git][ghc/ghc][master] Fix :info pretty-printing of UNPACKed fields

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Tue Jan 21 14:58:43 UTC 2025



Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
09ee3247 by Ryan Scott at 2025-01-21T09:58:00-05:00
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.

- - - - -


6 changed files:

- compiler/GHC/Iface/Syntax.hs
- testsuite/tests/backpack/should_fail/T19244a.stderr
- testsuite/tests/ghci/scripts/T9881.stdout
- testsuite/tests/interface-stability/base-exports.stdout
- testsuite/tests/interface-stability/base-exports.stdout-javascript-unknown-ghcjs
- testsuite/tests/interface-stability/base-exports.stdout-mingw32


The diff was not included because it is too large.


View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/09ee324759cfab6fd44f03ff7d9b43cf95aaafc9

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/09ee324759cfab6fd44f03ff7d9b43cf95aaafc9
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20250121/88b1c44c/attachment.html>


More information about the ghc-commits mailing list