[GHC] #1769: Deriving Typeable for data families

GHC cvs-ghc at haskell.org
Sat Jan 1 17:18:30 CET 2011


#1769: Deriving Typeable for data families
-------------------------------------------------+--------------------------
  Reporter:  chak                                |          Owner:  chak            
      Type:  task                                |         Status:  closed          
  Priority:  low                                 |      Milestone:  7.0.1           
 Component:  Compiler (Type checker)             |        Version:  6.9             
Resolution:  fixed                               |       Keywords:                  
  Testcase:  indexed-types/should_compile/T1769  |      Blockedby:                  
Difficulty:  Unknown                             |             Os:  Unknown/Multiple
  Blocking:                                      |   Architecture:  Unknown/Multiple
   Failure:  None/Unknown                        |  
-------------------------------------------------+--------------------------

Comment(by mitar):

 Wouldn't it be enough to define?

 {{{
 instance Typeable1 T where
   typeOf1 _ = mkTyConApp (mkTyCon "T") []
 }}}

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



More information about the Glasgow-haskell-bugs mailing list