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

git at git.haskell.org git at git.haskell.org
Mon Jun 6 11:12:40 UTC 2016


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

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

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

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

    Inline space


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

f3931e674108e9b727b80113bcfb0e18fff42df9
 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 09db187..c145773 100644
--- a/libraries/base/Data/Typeable/Internal.hs
+++ b/libraries/base/Data/Typeable/Internal.hs
@@ -337,10 +337,8 @@ instance Show (TypeRep (a :: k)) where
     | otherwise =
       showParen (p > 9) $
       showsPrec 8 f .
-      space .
+      showChar ' ' .
       showsPrec 9 x
-    where
-      space = showChar ' '
 
 instance Show TypeRepX where
   showsPrec p (TypeRepX ty) = showsPrec p ty



More information about the ghc-commits mailing list