Skip to content

Pretty-print HsArgPar applications correctly (#19737)

Ryan Scott requested to merge wip/T19737 into master

Previously, the Outputable instance for HsArg was being used to pretty-print each HsArgPar in a list of HsArgs individually, which simply doesn't work. In lieu of the Outputable instance, we now use a dedicated pprHsArgsApp function to print a list of HsArgs as a single unit. I have also added documentation to the Outputable instance for HsArg to more clearly signpost that it is only suitable for debug pretty-printing.

Fixes #19737 (closed).

Merge request reports