projects
/
ghc-base.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add a suitable Show instance for TextEncoding (#4273)
[ghc-base.git]
/
GHC
/
Show.lhs
diff --git
a/GHC/Show.lhs
b/GHC/Show.lhs
index
11dd7e1
..
dc19d87
100644
(file)
--- a/
GHC/Show.lhs
+++ b/
GHC/Show.lhs
@@
-388,7
+388,7
@@
showSignedInt (I# p) (I# n) r
itos :: Int# -> String -> String
itos n# cs
| n# <# 0# =
- let I# minInt# = minInt in
+ let !(I# minInt#) = minInt in
if n# ==# minInt#
-- negateInt# minInt overflows, so we can't do that:
then '-' : itos' (negateInt# (n# `quotInt#` 10#))