Fix dependency-analysis of type/class decls
authorSimon Peyton Jones <simonpj@microsoft.com>
Thu, 2 Feb 2012 13:21:46 +0000 (13:21 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Thu, 2 Feb 2012 13:21:46 +0000 (13:21 +0000)
commitbd0ce7d72a62100157355e3bab50bee3c953ee62
treec9fc47b24bae27475f7178ae9de4df8a027a75fd
parent9802620a85be4fed21db86830320fa8d98b4365d
Fix dependency-analysis of type/class decls

Family instances don't define a new type, but we were bogusly
pretending they bound the family tycon.  The led to incorrect
dependencies with strange results; it showed up as Trac #5792.

This slightly hacky fix is on the branch only; I am doing a more
substantial refactoring on HEAD.
compiler/rename/RnSource.lhs