Fix some missing unfoldings (foldr in particular!)
authorSimon Marlow <marlowsd@gmail.com>
Tue, 29 Sep 2009 10:27:45 +0000 (10:27 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Tue, 29 Sep 2009 10:27:45 +0000 (10:27 +0000)
commitc475d44b32c22d6cd2fd830c6fd52f77fded9865
tree7353e7fd69fb6e58399a37097cdc218831316ef8
parent1a84ec2aeb34eec7117aecc5a450064a9ac1c747
Fix some missing unfoldings (foldr in particular!)

The changes I made to the tidier recently introduced a serious
regression: the unfoldings for bindings in a recursive group were
sometimes lost, because we were looking at Id occurrences rather than
Id binders, and the occurrences of recursive Ids do not necessarily
have unfoldings attached.
compiler/main/TidyPgm.lhs