[commit: ghc] wip/binary-bytestring: Wiring in tuples note (913e1a3)

git at git.haskell.org git at git.haskell.org
Mon Jul 11 22:37:46 UTC 2016


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

On branch  : wip/binary-bytestring
Link       : http://ghc.haskell.org/trac/ghc/changeset/913e1a397c79dc9249935bfb16a44e83c07452eb/ghc

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

commit 913e1a397c79dc9249935bfb16a44e83c07452eb
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Tue Jul 12 00:12:52 2016 +0200

    Wiring in tuples note
    
    This should probably just be folded in to the note above


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

913e1a397c79dc9249935bfb16a44e83c07452eb
 compiler/iface/IfaceEnv.hs | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/compiler/iface/IfaceEnv.hs b/compiler/iface/IfaceEnv.hs
index b70c8e9..d4aa03b 100644
--- a/compiler/iface/IfaceEnv.hs
+++ b/compiler/iface/IfaceEnv.hs
@@ -202,6 +202,16 @@ However, there are two reasons why we might look up an Orig RdrName:
     go this route (Trac #8954).
 -}
 
+{-
+Note [Wiring in tuples]
+~~~~~~~~~~~~~~~~~~~~~~~
+
+The wiring-in of the tuple types is a bit tricky. The reason is that there are
+very many of them and we consequently want to avoid cluttering the name cache
+with them unnecessarily. For this reason we specially encode tuple Names in
+interface files,
+-}
+
 lookupOrigNameCache :: OrigNameCache -> Module -> OccName -> Maybe Name
 lookupOrigNameCache nc mod occ
   | mod == gHC_TYPES



More information about the ghc-commits mailing list