shadowNames: Use OccEnv a, not [OccName]
this allows us to use a smarter implementation based on
Data.IntSet.differenceWith
, which should do less work. Also, it will
unblock improvements to !6703 (closed).
The OccEnv a
really denotes a set of OccName
s. We are not using
OccSet
, though, because that is an OccEnv OccName
, and we in !6703 (closed)
we want to use this with differently-valued OccEnv
s. But OccSet
s are
readily and safely coerced into OccEnv
s.
There is no other use of delLocalRdrEnvList
remaining, so removing
that.
Edited by Joachim Breitner