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

GHC ghc-devs at haskell.org
Wed May 25 19:57:00 UTC 2016


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

Comment (by RyanGlScott):

 `Rep` definitely isn't injective. Counterexample: `Rep (Proxy Int)` = `Rep
 (Proxy Char)`, but `Int` is not `Char`.

 `Not` can certainly be made injective though, and this would be simple to
 do and useful. Would you care to make a patch for it?

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


More information about the ghc-tickets mailing list