Skip to content

Fix #22304 Fixed pprSpaceIfPromotedTyCon to prettyprint charecter literals correctly

Artin Ghasivand requested to merge (removed):pprfix into master

This is a fix for the issue #22304 (closed). The problem was that pprSpaceIfPromotedTyCon didn't pattern match on type literals so I tried to fix it. At first I tried to look at a PromotionFlag type in IfaceTyLit but the type didn't contain any PromotionFlag in it. Therefore I pattern matched on the data constructor IfaceCharTyLit in order to return (space <>) whenever we face a IfaceCharTyLit. I changed the function name from pprSpaceIfPromotedTyCon to pprSpaceIfPromotedTyconOrCharLit and updated the note on pretty printing promoted type constructors.

Edited by Artin Ghasivand

Merge request reports