summaryrefslogtreecommitdiff
path: root/compiler/cmm
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2020-01-03 21:22:36 -0500
committerBen Gamari <ben@well-typed.com>2020-01-03 21:22:36 -0500
commitb2e0323f318959c879629ef277f6433b44473c4b (patch)
treefde32aab739fa509fb8ec8e478aca10ccdc07491 /compiler/cmm
parentb84c09d533faf576c406ce9f7163efecf3037787 (diff)
downloadhaskell-b2e0323f318959c879629ef277f6433b44473c4b.tar.gz
Simplify mrStr
Diffstat (limited to 'compiler/cmm')
-rw-r--r--compiler/cmm/CmmType.hs9
1 files changed, 1 insertions, 8 deletions
diff --git a/compiler/cmm/CmmType.hs b/compiler/cmm/CmmType.hs
index 43d23c7ee7..f8ac71ac89 100644
--- a/compiler/cmm/CmmType.hs
+++ b/compiler/cmm/CmmType.hs
@@ -175,14 +175,7 @@ instance Outputable Width where
ppr rep = ptext (mrStr rep)
mrStr :: Width -> PtrString
-mrStr W8 = sLit("W8")
-mrStr W16 = sLit("W16")
-mrStr W32 = sLit("W32")
-mrStr W64 = sLit("W64")
-mrStr W128 = sLit("W128")
-mrStr W256 = sLit("W256")
-mrStr W512 = sLit("W512")
-
+mrStr = sLit . show
-------- Common Widths ------------