[project @ 2001-04-05 11:31:26 by simonpj]
authorsimonpj <unknown>
Thu, 5 Apr 2001 11:31:26 +0000 (11:31 +0000)
committersimonpj <unknown>
Thu, 5 Apr 2001 11:31:26 +0000 (11:31 +0000)
commit111972366435025b2f73bba8b4bdbfdca654528e
treeaa0bad339bf3d92ee17f4a08ee72daa5c10bc24c
parentb58e1155b0ec79ec6983c3e9a42880d511b7bc10
[project @ 2001-04-05 11:31:26 by simonpj]
--------------------------------
Better grouping for ty/cls decls
--------------------------------

When finding mutually-recursive groups of type and class decls,
we shouldn't include classes mentioned in a deriving clause as
edges. E.g.

class Eq a where ...

data Bool = True | False deriving( Eq )

Eq and Bool are not mutually recursive.

The edges are computed by RnHsSyn.tyClDeclFVs, so we remove the
derivings from there.

There a consequential fix in RnSource.rnSourceDecl
ghc/compiler/rename/RnHsSyn.lhs
ghc/compiler/rename/RnSource.lhs