Fix Trac #3391: make generic to/from bindings only for newly-declared types
authorsimonpj@microsoft.com <unknown>
Thu, 23 Jul 2009 15:58:03 +0000 (15:58 +0000)
committersimonpj@microsoft.com <unknown>
Thu, 23 Jul 2009 15:58:03 +0000 (15:58 +0000)
commit27bc28577451bf2c2f011b2821ef670373e46ced
treedb93285d2312702675c4b087376930b4953631de
parent6f32f9b429814499cfde1367e59d3e46bffc4925
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.
compiler/typecheck/TcDeriv.lhs