[GHC] #9667: Type inference is weaker for GADT than analogous Data Family

GHC ghc-devs at haskell.org
Tue Oct 7 15:22:12 UTC 2014


#9667: Type inference is weaker for GADT than analogous Data Family
-------------------------------------+-------------------------------------
              Reporter:  carter      |            Owner:
                  Type:  feature     |           Status:  new
  request                            |        Milestone:
              Priority:  normal      |          Version:  7.8.3
             Component:  Compiler    |         Keywords:
  (Type checker)                     |     Architecture:  Unknown/Multiple
            Resolution:              |       Difficulty:  Unknown
      Operating System:              |       Blocked By:
  Unknown/Multiple                   |  Related Tickets:
       Type of failure:  GHC         |
  rejects valid program              |
             Test Case:              |
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------

Comment (by goldfire):

 Can you create a minimal example? I can't run your example in the original
 post because it has unstated dependencies, and the attached file has a lot
 of stuff that's presumably unrelated.

 But, it sounds like you want some sort of type-level injectivity guarantee
 on a GADT. Interesting thought.

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


More information about the ghc-tickets mailing list