X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=ghc%2Fcompiler%2Frename%2FRnEnv.lhs;h=5884c3480ad8730439a6564cbd9f0d14e7ce81a1;hb=f4c599d2460672cdeec7e6b3c4c99bb308a54b67;hp=34a254e0de449079cd4e1d8581d4ff09106a12fc;hpb=86db5bf58f2bdca04c0140f0f411116d25b3151a;p=ghc-hetmet.git diff --git a/ghc/compiler/rename/RnEnv.lhs b/ghc/compiler/rename/RnEnv.lhs index 34a254e..5884c34 100644 --- a/ghc/compiler/rename/RnEnv.lhs +++ b/ghc/compiler/rename/RnEnv.lhs @@ -762,6 +762,8 @@ in error messages. \begin{code} unQualInScope :: GlobalRdrEnv -> Name -> Bool +-- True if 'f' is in scope, and has only one binding +-- (i.e. false if A.f and B.f are both in scope as unqualified 'f') unQualInScope env = (`elemNameSet` unqual_names) where