Skip to content

Remove redundant special case in STG pretty-printer

Ömer Sinan Ağacan requested to merge osa1/ghc:stgsyn_printer_refactor into master

This special case existed for no reason, and made things inconsistent.

Before

Boolean.$bT :: Boolean.Boolean
[GblId, Str=m, Unf=OtherCon []] =
    CAF_ccs  \ u  []  Boolean.$bT1;

After

Boolean.$bF :: Boolean.Boolean
[GblId, Str=m, Unf=OtherCon []] =
    \u [] Boolean.$bF1;

The cost-centre is now hidden when not profiling, as is the case with other types of closures.

Merge request reports