[commit: ghc] wip/T9858-typeable-ben2: Clarify where typeable for GHC.Types is derived (eb3eae8)
git at git.haskell.org
git at git.haskell.org
Tue Sep 22 14:47:42 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/T9858-typeable-ben2
Link : http://ghc.haskell.org/trac/ghc/changeset/eb3eae86ca62c8b404894c3ad0ee97e10d8d0b73/ghc
>---------------------------------------------------------------
commit eb3eae86ca62c8b404894c3ad0ee97e10d8d0b73
Author: Ben Gamari <ben at smart-cactus.org>
Date: Sun Sep 20 08:33:34 2015 +0200
Clarify where typeable for GHC.Types is derived
>---------------------------------------------------------------
eb3eae86ca62c8b404894c3ad0ee97e10d8d0b73
libraries/ghc-prim/GHC/Types.hs | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/libraries/ghc-prim/GHC/Types.hs b/libraries/ghc-prim/GHC/Types.hs
index a9e6a47..b186a84 100644
--- a/libraries/ghc-prim/GHC/Types.hs
+++ b/libraries/ghc-prim/GHC/Types.hs
@@ -380,6 +380,14 @@ type lets us use the TrNameS constructor when allocating static data;
but we also need TrNameD for the case where we are deserialising a TyCon
or Module (for example when deserialising a TypeRep), in which case we
can't conveniently come up with an Addr#.
+
+
+Note [Representations of types defined in GHC.Types]
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+The representations for the types defined in GHC.Types are
+defined in GHC.Typeable.Internal.
+
-}
#include "MachDeps.h"
More information about the ghc-commits
mailing list