rnTopBinds, rnMethodBinds,
rnBinds,
FreeVars(..), DefinedVars(..)
-
- -- and to make the interface self-sufficient...
) where
import Ubiq{-uitous-}
import Pretty
import ProtoName ( elemByLocalNames, eqByLocalName, ProtoName{-instances-} )
import RnExpr4 -- OK to look here; but not the other way 'round
-import UniqSet ( emptyUniqSet, singletonUniqSet, mkUniqSet,
+import UniqSet ( emptyUniqSet, unitUniqSet, mkUniqSet,
unionUniqSets, unionManyUniqSets,
- elementOfUniqSet,
+ elementOfUniqSet, addOneToUniqSet,
uniqSetToList,
UniqSet(..)
)
returnRn4 (
uniq + 1,
[(uniq,
- singletonUniqSet name',
+ unitUniqSet name',
fvs `unionUniqSets` sigs_fvs,
FunMonoBind name' new_matches locn,
sigs_for_me
-- acct in the dependency analysis (or we get an
-- unexpected out-of-scope error)! WDP 95/07
-sig_fv (SpecSig _ _ (Just blah) _) acc = acc `unionUniqSets` singletonUniqSet blah
+sig_fv (SpecSig _ _ (Just blah) _) acc = addOneToUniqSet acc blah
sig_fv _ acc = acc
\end{code}