#3391: Generics compilation failure in combination with Data.Accessor deriving
-----------------------------------------------+----------------------------
Reporter: darchon | Owner: simonpj
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Compiler | Version: 6.11
Severity: normal | Resolution: fixed
Keywords: Generics | Difficulty: Unknown
Testcase: typecheck/should_compile/T3391 | Os: Unknown/Multiple
Architecture: Unknown/Multiple |
-----------------------------------------------+----------------------------
Changes (by simonpj):
* testcase: => typecheck/should_compile/T3391
* status: new => closed
* resolution: => fixed
Comment:
Good stuff. Fixed by
{{{
Thu Jul 23 16:58:03 BST 2009 [email protected]
* Fix Trac #3391: make generic to/from bindings only for newly-declared
types
Before this patch we were bogusly making to/from bindings for all data
types
in the TcGblEnv. But that is wrong when we have multiple "chunks" of
bindings in Template Haskell. We should start from the declarations
themselves. Easy.
M ./compiler/typecheck/TcDeriv.lhs -7 +7
}}}
Thanks for the report
Simon
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3391#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs