
#13782: Bullish use of Template Haskell's newName causes GHC internal error -------------------------------------+------------------------------------- Reporter: RyanGlScott | Owner: carlostome Type: bug | Status: new Priority: high | Milestone: 8.2.1 Component: Template Haskell | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Compile-time | Unknown/Multiple crash or panic | Test Case: Blocked By: | Blocking: Related Tickets: #12503 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by simonpj): * cc: goldfire (added) * differential: Phab:D3641 => Comment: Yes, I think you are right. For some undocumented reason, Richard, you changed this function to manipulate {{{ data FreeKiTyVars = FKTV { fktv_kis :: [Located RdrName] , _fktv_k_set :: OccSet -- for efficiency, -- only used internally , fktv_tys :: [Located RdrName] , _fktv_t_set :: OccSet , fktv_all :: [Located RdrName] } }}} instead of just the `fktv_kis` and `fktv_tys` pair which it used before. Moreover you switched to using `OccNames` for equality rather than `RdrNames`. Might you fix? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13782#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler