[GHC] #14520: GHC panic (TypeInType)

GHC ghc-devs at haskell.org
Mon Dec 11 15:30:39 UTC 2017


#14520: GHC panic (TypeInType)
-------------------------------------+-------------------------------------
        Reporter:  Iceland_jack      |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.2.1
      Resolution:                    |             Keywords:  TypeInType
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 Simon Peyton Jones <simonpj@…>):

 In [changeset:"8b36ed129652df07af22b5e2a2e57b1df8cfbbc9/ghc" 8b36ed1/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="8b36ed129652df07af22b5e2a2e57b1df8cfbbc9"
 Build only well-kinded types in type checker

 During type inference, we maintain the invariant that every type is
 well-kinded /without/ zonking; and in particular that typeKind does
 not fail (as it can for ill-kinded types).

 But TcHsType.tcInferApps was not guaranteeing this invariant,
 resulting in Trac #14174 and #14520.

 This patch fixes it, making things better -- but it does /not/
 fix the program in Trac #14174 comment:5, which still crashes.
 So more work to be done.

 See Note [Ensure well-kinded types] in TcHsType
 }}}

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


More information about the ghc-tickets mailing list