[GHC] #8165: Use GeneralizedNewtypeDeriving to automatically create associated type families

GHC ghc-devs at haskell.org
Fri Aug 23 20:56:05 UTC 2013


#8165: Use GeneralizedNewtypeDeriving to automatically create associated type
families
------------------------------------+-------------------------------------
       Reporter:  MikeIzbicki       |             Owner:
           Type:  feature request   |            Status:  new
       Priority:  normal            |         Milestone:
      Component:  Compiler          |           Version:  7.6.3
       Keywords:                    |  Operating System:  Unknown/Multiple
   Architecture:  Unknown/Multiple  |   Type of failure:  None/Unknown
     Difficulty:  Unknown           |         Test Case:
     Blocked By:                    |          Blocking:
Related Tickets:                    |
------------------------------------+-------------------------------------
 Here's a simple example:

 {{{
 class C a where
     type T a

 instance C Int where
     type T Int = Bool

 newtype NT = NT Int
     deriving C
 }}}

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




More information about the ghc-tickets mailing list