[GHC] #12057: TypeFamilyDependencies on GHC.Generic's `Rep`

GHC ghc-devs at haskell.org
Fri May 13 19:37:28 UTC 2016


#12057: TypeFamilyDependencies on GHC.Generic's `Rep`
-------------------------------------+-------------------------------------
           Reporter:  Iceland_jack   |             Owner:
               Type:  feature        |            Status:  new
  request                            |
           Priority:  normal         |         Milestone:
          Component:                 |           Version:  8.0.1
  libraries/base                     |
           Keywords:  TypeFamilies,  |  Operating System:  Unknown/Multiple
  Injective                          |
       Architecture:                 |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 With `TypeFamilyDependencies` (`InjectiveTypeFamilies`) can't `Rep` from
 `Generic` have a dependency?

 {{{#!hs
 class Generic a where
   type Rep a = (res :: Type -> Type) | res -> a
   ...
 }}}

 Assuming the meta data is always unique.

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


More information about the ghc-tickets mailing list