Fix dependency information for RULES
authorsimonpj@microsoft.com <unknown>
Thu, 3 May 2007 12:47:59 +0000 (12:47 +0000)
committersimonpj@microsoft.com <unknown>
Thu, 3 May 2007 12:47:59 +0000 (12:47 +0000)
commit59a4ad63f93f4fd7b8ede74bb2ea36778fe25e06
tree453586dc4e28f58a309e66b59e794e5aa9b81cc0
parentde905f504a3e129e2c4a1906d7e0a26e36cd6c4b
Fix dependency information for RULES

A SpecInfo (inside IdInfo) keeps track of the free variables of a RULE
so that the occurrency analyser knows about its dependencies.

Previously it was only tracking the *rhs* free vars, but it should
really include the *lhs* ones too.  See Note [Rule dependency info]
in IdInfo.

This fixes a WARNING when compiling some libraries.
compiler/basicTypes/IdInfo.lhs
compiler/coreSyn/CoreFVs.lhs
compiler/specialise/Rules.lhs