[GHC] #15778: GHC HEAD-only panic (zonkTcTyVarToTyVar)

GHC ghc-devs at haskell.org
Wed Oct 24 15:23:31 UTC 2018


#15778: GHC HEAD-only panic (zonkTcTyVarToTyVar)
-------------------------------------+-------------------------------------
        Reporter:  RyanGlScott       |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  highest           |            Milestone:  8.8.1
       Component:  Compiler (Type    |              Version:  8.7
  checker)                           |
      Resolution:                    |             Keywords:  TypeInType
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Compile-time      |  Unknown/Multiple
  crash or panic                     |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by simonpj):

 I know what is happening here.  In `tcHsPatSigType` we have
 {{{
     mk_tv_pair tv = do { tv' <- zonkTcTyVarToTyVar tv
                        ; return (tyVarName tv, tv') }
 }}}
 But now the tyvar might have unified with a ''type'' not a type
 ''variable''.  And in these cases it does.  I think that the right thing
 is simply to remove the zonk.  I'll act on this.

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


More information about the ghc-tickets mailing list