[commit: ghc] master: We don't actually need a Show instance for the PlatformConstants type (448ad24)

Ian Lynagh <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.ghc
Message-ID <[email protected]>
Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/448ad24fd71b3aa399a80083515ab655b11756ba

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

commit 448ad24fd71b3aa399a80083515ab655b11756ba
Author: Ian Lynagh <[email protected]>
Date:   Thu Sep 20 11:34:38 2012 +0100

    We don't actually need a Show instance for the PlatformConstants type
    
    and creating one is quite slow

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

 includes/mkDerivedConstants.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/includes/mkDerivedConstants.c b/includes/mkDerivedConstants.c
index c0bfb0c..6f21899 100644
--- a/includes/mkDerivedConstants.c
+++ b/includes/mkDerivedConstants.c
@@ -759,7 +759,7 @@ main(int argc, char *argv[])
 
     switch (mode) {
     case Gen_Haskell_Type:
-        printf("  } deriving (Read, Show)\n");
+        printf("  } deriving Read\n");
         break;
     case Gen_Haskell_Value:
         printf("  }\n");
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.