[commit: ghc] wip/lazy-instance-matching: IfaceEnv: Only parse OccNames in GHC.Tuple (adf69e4)

git at git.haskell.org git at git.haskell.org
Tue Jul 19 05:53:18 UTC 2016


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

On branch  : wip/lazy-instance-matching
Link       : http://ghc.haskell.org/trac/ghc/changeset/adf69e43302f7a19b75d0b2ad9d08ef375cf51b8/ghc

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

commit adf69e43302f7a19b75d0b2ad9d08ef375cf51b8
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Mon Jul 18 21:56:42 2016 +0200

    IfaceEnv: Only parse OccNames in GHC.Tuple


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

adf69e43302f7a19b75d0b2ad9d08ef375cf51b8
 compiler/iface/IfaceEnv.hs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/compiler/iface/IfaceEnv.hs b/compiler/iface/IfaceEnv.hs
index ff2f648..75acb68 100644
--- a/compiler/iface/IfaceEnv.hs
+++ b/compiler/iface/IfaceEnv.hs
@@ -33,7 +33,7 @@ import Module
 import FastString
 import FastStringEnv
 import IfaceType
-import PrelNames ( gHC_TYPES, gHC_PRIM, gHC_TUPLE )
+import PrelNames ( gHC_TUPLE )
 import UniqSupply
 import SrcLoc
 import Util
@@ -214,7 +214,7 @@ are two reasons why we might look up an Orig RdrName for built-in syntax,
 
 lookupOrigNameCache :: OrigNameCache -> Module -> OccName -> Maybe Name
 lookupOrigNameCache nc mod occ
-  | mod == gHC_TYPES || mod == gHC_PRIM || mod == gHC_TUPLE
+  | mod == gHC_TUPLE
   , Just name <- isBuiltInOcc_maybe occ
   =     -- See Note [Known-key names], 3(c) in PrelNames
         -- Special case for tuples; there are too many



More information about the ghc-commits mailing list