[GHC] #9858: Typeable instance for datatype and its promoted constructor is the same

GHC ghc-devs at haskell.org
Mon Jan 19 15:55:04 UTC 2015


#9858: Typeable instance for datatype and its promoted constructor is the same
-------------------------------------+-------------------------------------
        Reporter:  dreixel           |                   Owner:  dreixel
            Type:  bug               |                  Status:  new
        Priority:  highest           |               Milestone:  7.10.1
       Component:  Compiler          |                 Version:  7.9
      Resolution:                    |                Keywords:
Operating System:  Unknown/Multiple  |            Architecture:
 Type of failure:  None/Unknown      |  Unknown/Multiple
      Blocked By:                    |               Test Case:
 Related Tickets:                    |                Blocking:
                                     |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by dreixel):

 Here's the current definition of `TypeRep`:

 {{{
 data TypeRep = TypeRep {-# UNPACK #-} !Fingerprint TyCon [TypeRep]

 data TyCon = TyCon {
    tyConHash    :: {-# UNPACK #-} !Fingerprint,
    tyConPackage :: String,
    tyConModule  :: String,
    tyConName    :: String
  }
 }}}

 Could we perhaps add a `tyConKind :: TypeRep` to `TyCon`, and make sure
 that it is used when computing the hash?

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9858#comment:18>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list