Skip to content
  • Ryan Scott's avatar
    Pretty-print HsArgPar applications correctly (#19737) · dd121fa1
    Ryan Scott authored and Marge Bot's avatar Marge Bot committed
    Previously, the `Outputable` instance for `HsArg` was being used to
    pretty-print each `HsArgPar` in a list of `HsArg`s individually, which
    simply doesn't work. In lieu of the `Outputable` instance, we now use
    a dedicated `pprHsArgsApp` function to print a list of `HsArg`s 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.
    dd121fa1