[GHC] #10832: Generalize injective type families

GHC ghc-devs at haskell.org
Mon May 22 18:55:51 UTC 2017


#10832: Generalize injective type families
-------------------------------------+-------------------------------------
        Reporter:  jstolarek         |                Owner:  jstolarek
            Type:  feature request   |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler (Type    |              Version:  7.11
  checker)                           |             Keywords:  TypeFamilies,
      Resolution:                    |  InjectiveFamilies
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #6018             |  Differential Rev(s):  Phab:D1287
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Iceland_jack):

 Possible use-case #13731

 {{{#!hs
 type family ExtensionType ext a = res | res -> ext a
 data ListExtension
 type instance ExtensionType ListExtension a = [a]
 }}}

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


More information about the ghc-tickets mailing list