summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorKrzysztof Gogolewski <krzysztof.gogolewski@tweag.io>2022-11-17 22:47:55 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-11-29 03:10:13 -0500
commit646969d4da90b8c52c3b3320b01f26452d786380 (patch)
tree40c00eafd8a999f6cb9c2d8fdc12fe85554a1c5b /compiler
parent8d15eadc2a791062f0392ec0d1b3a30f7e214fa4 (diff)
downloadhaskell-646969d4da90b8c52c3b3320b01f26452d786380.tar.gz
Change printing of sized literals to match the proposal
Literals in Core were printed as e.g. 0xFF#16 :: Int16#. The proposal 451 now specifies syntax 0xFF#Int16. This change affects the Core printer only - more to be done later. Part of #21422.
Diffstat (limited to 'compiler')
-rw-r--r--compiler/GHC/Utils/Outputable.hs16
1 files changed, 8 insertions, 8 deletions
diff --git a/compiler/GHC/Utils/Outputable.hs b/compiler/GHC/Utils/Outputable.hs
index 812edf15cd..a019946ab5 100644
--- a/compiler/GHC/Utils/Outputable.hs
+++ b/compiler/GHC/Utils/Outputable.hs
@@ -1251,14 +1251,14 @@ primFloatSuffix = char '#'
primIntSuffix = char '#'
primDoubleSuffix = text "##"
primWordSuffix = text "##"
-primInt8Suffix = text "#8"
-primWord8Suffix = text "##8"
-primInt16Suffix = text "#16"
-primWord16Suffix = text "##16"
-primInt32Suffix = text "#32"
-primWord32Suffix = text "##32"
-primInt64Suffix = text "#64"
-primWord64Suffix = text "##64"
+primInt8Suffix = text "#Int8"
+primWord8Suffix = text "#Word8"
+primInt16Suffix = text "#Int16"
+primWord16Suffix = text "#Word16"
+primInt32Suffix = text "#Int32"
+primWord32Suffix = text "#Word32"
+primInt64Suffix = text "#Int64"
+primWord64Suffix = text "#Word64"
-- | Special combinator for showing unboxed literals.
pprPrimChar :: Char -> SDoc