#3423: No match in record selector Var.tcTyVarDetails with ghc >= 6.10.2
---------------------------------------------------+------------------------
Reporter: morrow | Owner:
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Compiler | Version: 6.10.4
Severity: normal | Resolution: fixed
Keywords: | Difficulty: Unknown
Testcase: indexed_types/should_compile/T3423 | Os:
Unknown/Multiple
Architecture: Unknown/Multiple |
---------------------------------------------------+------------------------
Changes (by simonpj):
* testcase: => indexed_types/should_compile/T3423
* difficulty: => Unknown
* status: new => closed
* resolution: => fixed
Comment:
Ah yes, excellent point thank you. A missed instantiation.
{{{
Fri Aug 21 22:07:00 GMT Daylight Time 2009 simo...@microsoft.com
* Fix Trac #3423: missed instantiation for newtype-derived instances
Somehow I'd forgotten to instantiate the coercion that is stored in a
'NewtypeDerived' constructor in an InstInfo. The necessary code is
in TcInstDcls.tc_inst_decl2.
The result was ghc: panic! (the 'impossible' happened)
(GHC version 6.10.3 for x86_64-unknown-linux):
No match in record selector Var.tcTyVarDetails
because we were looking at an (uninstantiated) TyVar instead of
an (instantiated) TcTyVar.
}}}
Simon
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3423#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs