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

GHC ghc-devs at haskell.org
Fri May 13 21:11:31 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 Iceland_jack):

 `Data.Type.Bool.Not` can be made injective

 {{{#!hs
 type family Not (a :: Bool) = (res :: Bool) | res ->
 }}}

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


More information about the ghc-tickets mailing list