[GHC] #10586: GHC 7.10.1 panic due to wildcard in data family instance

GHC ghc-devs at haskell.org
Wed Jul 22 11:10:31 UTC 2015


#10586: GHC 7.10.1 panic due to wildcard in data family instance
-------------------------------------+-------------------------------------
        Reporter:  WrenThornton      |                   Owner:
            Type:  bug               |                  Status:  closed
        Priority:  normal            |               Milestone:
       Component:  Compiler          |                 Version:  7.10.1
      Resolution:  fixed             |                Keywords:
Operating System:  Unknown/Multiple  |            Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |               Test Case:
      Blocked By:                    |                Blocking:
 Related Tickets:  #3699             |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by simonpj):

 Follow the pattern in `TcHsType.tcHsTyVarBndr` (which in any case is
 probably the function you'll need to modify).  It uses `mkTcTyVar` as far
 as I can see.  Just do the same, but with a fresh `Name`.

 Simon

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


More information about the ghc-tickets mailing list