[commit: ghc] wip/orf-reboot: Comments only (f7d5e5c)

git at git.haskell.org git at git.haskell.org
Mon Oct 12 06:37:30 UTC 2015


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

On branch  : wip/orf-reboot
Link       : http://ghc.haskell.org/trac/ghc/changeset/f7d5e5cbdbcc2544f579c711afb0b364433f19ee/ghc

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

commit f7d5e5cbdbcc2544f579c711afb0b364433f19ee
Author: Adam Gundry <adam at well-typed.com>
Date:   Tue Oct 6 17:41:37 2015 +0100

    Comments only


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

f7d5e5cbdbcc2544f579c711afb0b364433f19ee
 compiler/rename/RnNames.hs      | 2 +-
 compiler/typecheck/TcRnTypes.hs | 5 ++---
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/compiler/rename/RnNames.hs b/compiler/rename/RnNames.hs
index 5e3b71a..ba30145 100644
--- a/compiler/rename/RnNames.hs
+++ b/compiler/rename/RnNames.hs
@@ -1471,7 +1471,7 @@ reportUnusedNames _export_decls gbl_env
     used_as_selector :: Set.Set (FieldOcc Name) -> GlobalRdrElt -> Bool
     used_as_selector sel_uses gre
       = isRecFldGRE gre && any ((==) (gre_name gre) . selectorFieldOcc) sel_uses
-          -- AMG TODO use a map instead?
+
 
 {-
 *********************************************************
diff --git a/compiler/typecheck/TcRnTypes.hs b/compiler/typecheck/TcRnTypes.hs
index a1e0cc5..2df7fdd 100644
--- a/compiler/typecheck/TcRnTypes.hs
+++ b/compiler/typecheck/TcRnTypes.hs
@@ -583,7 +583,6 @@ We gather three sorts of usage information
    This usage info is mainly gathered by the renamer's
    gathering of free-variables
 
-AMG TODO update me please
  * tcg_used_rdrnames
       Records used *imported* (not locally-defined) RdrNames
       Used only to report unused import declarations
@@ -593,8 +592,8 @@ AMG TODO update me please
       is unnecessary.  This info isn't present in Names.
 
  * tcg_used_selectors
-      Records the Names of record selectors that are used
-      by the DuplicateRecordFields extension. These
+      Records the record selectors that are used
+      by the DuplicateRecordFields extension.  These
       may otherwise be missed from tcg_used_rdrnames as a
       single RdrName might refer to multiple fields.
 



More information about the ghc-commits mailing list