summaryrefslogtreecommitdiff
path: root/compiler/typecheck/TcTypeable.hs
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2016-07-20 19:04:10 +0200
committerBen Gamari <ben@smart-cactus.org>2016-07-20 19:35:33 +0200
commit83e4f49577665278fe08fbaafe2239553f3c448e (patch)
tree8cb7cbd315261e09d2a78b5f15a64232c628d199 /compiler/typecheck/TcTypeable.hs
parentcf989ffe490c146be4ed0fd7e0c00d3ff8fe1453 (diff)
downloadhaskell-83e4f49577665278fe08fbaafe2239553f3c448e.tar.gz
Revert "Clean up interaction between name cache and built-in syntax"
This reverts commit 9513fe6bdeafd35ca1a04e17b5f94732516766aa. Sadly this broke with -DDEBUG.
Diffstat (limited to 'compiler/typecheck/TcTypeable.hs')
-rw-r--r--compiler/typecheck/TcTypeable.hs19
1 files changed, 0 insertions, 19 deletions
diff --git a/compiler/typecheck/TcTypeable.hs b/compiler/typecheck/TcTypeable.hs
index a733a3263b..04d07d16eb 100644
--- a/compiler/typecheck/TcTypeable.hs
+++ b/compiler/typecheck/TcTypeable.hs
@@ -85,25 +85,6 @@ There are many wrinkles:
representations for TyCon and Module. See GHC.Types
Note [Runtime representation of modules and tycons]
-
-Note [Tuples and Typeable]
-~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-Tuples are generally special in GHC since they are not placed in the original
-name cache (see Note [Built-in syntax and the OrigNameCache]). This poses a
-problem for Typeable: we need to serialize the Name of a type representation for
-a tuple type with enough information such that the compiler will realize that
-the Name is that of a tuple type representation (and thus gets the same unique
-as is indicated in the wired-in TyCon) when it is loaded from an interface file.
-
-We ensure this by only including the type representations for the type
-contructor and its promoted data constructor in the original name cache. The
-alternative would have been to use the same special interface file encoding as
-we use for tuple TyCons for tuple type representations. Unfortunately, this is
-rather tiresome to do so we are going to live with this compromise for now.
-
-A great deal of discussion on how we came to this design can be found in #12357.
-
-}
-- | Generate the Typeable bindings for a module. This is the only