Skip to content

Fix :info pretty-printing of UNPACKed fields

Ryan Scott requested to merge wip/T25651 into master

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 UNPACKed fields (e.g., such as when one unpacks a newtype) from being printed in :info output unless -dppr-debug is enabled.

Fixes #25651 (closed).

Merge request reports

Loading