[GHC] #13962: GHCi allows unsaturated type family

GHC ghc-devs at haskell.org
Sat Aug 19 12:48:14 UTC 2017


#13962: GHCi allows unsaturated type family
-------------------------------------+-------------------------------------
        Reporter:  Iceland_jack      |                Owner:  (none)
            Type:  bug               |               Status:  closed
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.0.1
      Resolution:  wontfix           |             Keywords:  TypeFamilies
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #12089            |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Changes (by RyanGlScott):

 * status:  new => closed
 * resolution:   => wontfix


Comment:

 Replying to [comment:5 goldfire]:
 > The muddiness all comes down to this: If GHC knows `m a ~ Maybe Int`,
 should it choose `m ~ Maybe` and `a ~ Int`? After all, if `m` could be an
 unsaturated type family, committing to the above decomposition would be
 wrong.
 >
 > This kind of inference seems unlikely in `:kind` or `:kind!`, though I
 can't rule it out if someone tried to.

 Thanks for explaining this.

 > In the end, I think we should just keep the current behavior.

 That sounds reasonable to me. Given that there's already a section in the
 users' manual about this, I'd say we can just close this ticket.

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


More information about the ghc-tickets mailing list