Fri Aug 21 14:07:00 PDT 2009  [email protected]
  * Fix Trac #3423: missed instantiation for newtype-derived instances
  Ignore-this: 73fa66b45a9affe5b4e0276551e5861f
  
  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.
  

    M ./compiler/typecheck/TcDeriv.lhs +1
    M ./compiler/typecheck/TcInstDcls.lhs -5 +12

View patch online:
http://darcs.haskell.org/ghc/_darcs/patches/20090821210700-1287e-a19d8c5c5d060167b61df3f580e1d62bae3c9728.gz

_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to