summaryrefslogtreecommitdiff
path: root/compiler/GHC/Cmm/Node.hs
diff options
context:
space:
mode:
authorRyan Scott <ryan.gl.scott@gmail.com>2021-02-13 20:23:13 -0500
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-02-26 16:26:13 -0500
commit8d1fb46da8883b03f9f3f664a9085ff4fda76e7f (patch)
treec600e83a58314967d1d42a3e10c2b90c86fa9d28 /compiler/GHC/Cmm/Node.hs
parent80eda911ef1ea711a9e3e51ad510dfe5a9a09ae9 (diff)
downloadhaskell-8d1fb46da8883b03f9f3f664a9085ff4fda76e7f.tar.gz
Fix #19363 by using pprName' {Applied,Infix} in the right places
It was revealed in #19363 that the Template Haskell pretty-printer implemented in `Language.Haskell.TH.Ppr` did not pretty-print infix names or symbolic names correctly in certain situations, such as in data constructor declarations or fixity declarations. Easily fixed by using `pprName' Applied` (which always parenthesizes symbolic names in prefix position) or `pprName' Infix` (which always surrounds alphanumeric names with backticks in infix position) in the right spots. Fixes #19363.
Diffstat (limited to 'compiler/GHC/Cmm/Node.hs')
0 files changed, 0 insertions, 0 deletions