summaryrefslogtreecommitdiff
path: root/compiler/main/InteractiveEval.hs
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2014-11-28 17:35:44 +0000
committerSimon Peyton Jones <simonpj@microsoft.com>2014-11-28 17:36:15 +0000
commit7460dafae3709218af651cb8bc47b5f03d4c25c7 (patch)
tree55eacd9c3fbaf7d48fc80190f376f0c55bbf1ad1 /compiler/main/InteractiveEval.hs
parent171101beca39befde191baff5027c417bcc709ee (diff)
downloadhaskell-7460dafae3709218af651cb8bc47b5f03d4c25c7.tar.gz
Rename some of the functions in NameSet, to make the uniform with VarSet etc
For ages NameSet has used different names, eg. addOneToNameSet rather than extendNameSet nameSetToList rather than nameSetElems etc. Other set-like modules use uniform naming conventions. This patch makes NameSet follow suit. No change in behaviour; this is just renaming. I'm doing this just before the fork so that merging is easier.
Diffstat (limited to 'compiler/main/InteractiveEval.hs')
-rw-r--r--compiler/main/InteractiveEval.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/main/InteractiveEval.hs b/compiler/main/InteractiveEval.hs
index b22e10e108..bbd5213b54 100644
--- a/compiler/main/InteractiveEval.hs
+++ b/compiler/main/InteractiveEval.hs
@@ -912,7 +912,7 @@ getInfo allInfo name
plausible rdr_env names
-- Dfun involving only names that are in ic_rn_glb_env
= allInfo
- || all ok (nameSetToList names)
+ || all ok (nameSetElems names)
where -- A name is ok if it's in the rdr_env,
-- whether qualified or not
ok n | n == name = True -- The one we looked for in the first place!