The source project of this merge request has been removed.
Fix #22304 Fixed pprSpaceIfPromotedTyCon to prettyprint charecter literals correctly
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.