summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2016-07-12 00:12:52 +0200
committerBen Gamari <ben@smart-cactus.org>2016-07-12 16:26:18 +0200
commite13f37aef116eca7cb0548abbf7b8fdce7650c79 (patch)
tree39e63aa394fc22d24d9c7916fb6bee53057ea6a9
parent45a25050ecfa44d6784d449ebdce532d9a39d63e (diff)
downloadhaskell-wip/occname.tar.gz
Wiring in tuples notewip/occname
This should probably just be folded in to the note above
-rw-r--r--compiler/iface/IfaceEnv.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/compiler/iface/IfaceEnv.hs b/compiler/iface/IfaceEnv.hs
index b70c8e922f..d4aa03b8ca 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