[commit: ghc] wip/ttypeable: Inline space (1b7d4be)

git at git.haskell.org git at git.haskell.org
Sat Oct 1 21:34:30 UTC 2016


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

On branch  : wip/ttypeable
Link       : http://ghc.haskell.org/trac/ghc/changeset/1b7d4be261460fa5c73448bf0ea671a053ec8774/ghc

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

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

    Inline space


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

1b7d4be261460fa5c73448bf0ea671a053ec8774
 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