#5568: Add Show and Binary instances for TypeRep
---------------------------------+------------------------------------------
    Reporter:  simonmar          |       Owner:                  
        Type:  bug               |      Status:  new             
    Priority:  normal            |   Milestone:  7.4.2           
   Component:  libraries/base    |     Version:  7.2.1           
    Keywords:                    |          Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown    
  Difficulty:  Unknown           |    Testcase:                  
   Blockedby:                    |    Blocking:                  
     Related:                    |  
---------------------------------+------------------------------------------
Changes (by simonmar):

  * difficulty:  => Unknown
  * milestone:  7.4.1 => 7.4.2


Comment:

 We now export

 {{{
         tyConPackage,   -- :: TyCon   -> String
         tyConModule,    -- :: TyCon   -> String
         tyConName,      -- :: TyCon   -> String
 }}}

 from `Data.Typeable`, which gives you enough information to
 serialise/deserialise a `TyCon`.

 Is that enough?  If you want to get at the fingerprint you can still get
 it via `Data.Typeable.Internal`.

 If `TypeRepKey` were a supported API, we would have to say what properties
 it has - does it produce the same results on different platforms, or
 different GHC versions, for example?

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

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to