From b88228d5af6a795fc6bf7582160f271b23608fbe Mon Sep 17 00:00:00 2001 From: Ben Gamari <bgamari.foss@gmail.com> Date: Sun, 25 Mar 2018 22:12:49 -0400 Subject: [PATCH] base: Fix Unicode handling of TyCon's Show instance Test Plan: `make test TEST=T14925` Reviewers: hvr, dfeuer Reviewed By: dfeuer Subscribers: rwbarton, thomie, carter GHC Trac Issues: #14925 Differential Revision: https://phabricator.haskell.org/D4530 (cherry picked from commit 20ae19fc7297dceaefde8d3443099bfd9cd1e905) --- libraries/base/GHC/Show.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/base/GHC/Show.hs b/libraries/base/GHC/Show.hs index d1c607556e08..b639681aca53 100644 --- a/libraries/base/GHC/Show.hs +++ b/libraries/base/GHC/Show.hs @@ -208,7 +208,7 @@ instance Show TyCon where -- | @since 4.9.0.0 instance Show TrName where - showsPrec _ (TrNameS s) = showString (unpackCString# s) + showsPrec _ (TrNameS s) = showString (unpackCStringUtf8# s) showsPrec _ (TrNameD s) = showString s -- | @since 4.9.0.0 -- GitLab