[commit: ghc] wip/ttypeable: Inline space (957ac8d)

git at git.haskell.org git at git.haskell.org
Sun Jan 29 20:19:14 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/ttypeable
Link       : http://ghc.haskell.org/trac/ghc/changeset/957ac8d8e77e25f9aba3830fbcb72eb79d971bfb/ghc

>---------------------------------------------------------------

commit 957ac8d8e77e25f9aba3830fbcb72eb79d971bfb
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Wed Mar 16 22:10:16 2016 +0100

    Inline space


>---------------------------------------------------------------

957ac8d8e77e25f9aba3830fbcb72eb79d971bfb
 libraries/base/Data/Typeable/Internal.hs | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/libraries/base/Data/Typeable/Internal.hs b/libraries/base/Data/Typeable/Internal.hs
index f671f0b..8e1c565 100644
--- a/libraries/base/Data/Typeable/Internal.hs
+++ b/libraries/base/Data/Typeable/Internal.hs
@@ -340,10 +340,8 @@ instance Show (TypeRep (a :: k)) where
     | otherwise =
       showParen (p > 9) $
       showsPrec 8 f .
-      space .
+      showChar ' ' .
       showsPrec 9 x
-    where
-      space = showChar ' '
 
 -- | @since 4.10.0.0
 instance Show TypeRepX where



More information about the ghc-commits mailing list