Fix Trac #3323: naughty record selectors again
authorsimonpj@microsoft.com <unknown>
Thu, 25 Jun 2009 07:23:40 +0000 (07:23 +0000)
committersimonpj@microsoft.com <unknown>
Thu, 25 Jun 2009 07:23:40 +0000 (07:23 +0000)
commitb410846772e0ee630b82df31990bf9805b2d1849
tree403e3f6a7a6ed884057c5561aa446105c373f584
parentdce2394f7d2a695c1020643eda12465a280468f5
Fix Trac #3323: naughty record selectors again

I boobed when I decoupled record selectors from their data types.
The most straightforward and robust fix means attaching the TyCon
of a record selector to its IfaceIdInfo, so

   you'll need to rebuild all .hi files

That said, the fix is easy.
compiler/iface/BinIface.hs
compiler/iface/IfaceSyn.lhs
compiler/iface/MkIface.lhs
compiler/iface/TcIface.lhs
compiler/typecheck/TcExpr.lhs
compiler/typecheck/TcTyClsDecls.lhs