[commit: ghc] master: Comments only (af6dced)

git at git.haskell.org git at git.haskell.org
Thu Apr 28 16:32:20 UTC 2016


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/af6dced902ba158f0b05b224ff4afb5a3f9c9e5a/ghc

>---------------------------------------------------------------

commit af6dced902ba158f0b05b224ff4afb5a3f9c9e5a
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Mon Apr 25 16:13:38 2016 +0100

    Comments only


>---------------------------------------------------------------

af6dced902ba158f0b05b224ff4afb5a3f9c9e5a
 compiler/rename/RnNames.hs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/compiler/rename/RnNames.hs b/compiler/rename/RnNames.hs
index e3bdaab..1e704bf 100644
--- a/compiler/rename/RnNames.hs
+++ b/compiler/rename/RnNames.hs
@@ -733,8 +733,8 @@ Note [Dealing with imports]
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
 For import M( ies ), we take the mi_exports of M, and make
    imp_occ_env :: OccEnv (Name, AvailInfo, Maybe Name)
-One entry for each Name that M exports; the AvailInfo describes just
-that Name.
+One entry for each Name that M exports; the AvailInfo is the
+AvailInfo exported from M that exports that Name.
 
 The situation is made more complicated by associated types. E.g.
    module M where
@@ -747,7 +747,7 @@ Notice that T appears *twice*, once as a child and once as a parent.
 From this we construct the imp_occ_env
    C  -> (C,  C(C,T),        Nothing)
    T  -> (T,  T(T,T1,T2,T3), Just C)
-   T1 -> (T1, T(T1,T2,T3),   Nothing)   -- similarly T2,T3
+   T1 -> (T1, T(T,T1,T2,T3), Nothing)   -- similarly T2,T3
 
 If we say
    import M( T(T1,T2) )



More information about the ghc-commits mailing list