Comments only
authorsimonpj@microsoft.com <unknown>
Wed, 10 Feb 2010 09:45:37 +0000 (09:45 +0000)
committersimonpj@microsoft.com <unknown>
Wed, 10 Feb 2010 09:45:37 +0000 (09:45 +0000)
compiler/specialise/SpecConstr.lhs
compiler/typecheck/TcRnTypes.lhs

index e2eda2b..b839412 100644 (file)
@@ -1272,7 +1272,7 @@ calcSpecStrictness fn qvars pats
 
 Note [Specialise original body]
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 Note [Specialise original body]
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-The RhsInfo for a binding keeps the *oringal* body of the binding.  We
+The RhsInfo for a binding keeps the *original* body of the binding.  We
 must specialise that, *not* the result of applying specExpr to the RHS
 (which is also kept in RhsInfo). Otherwise we end up specialising a
 specialised RHS, and that can lead directly to exponential behaviour.
 must specialise that, *not* the result of applying specExpr to the RHS
 (which is also kept in RhsInfo). Otherwise we end up specialising a
 specialised RHS, and that can lead directly to exponential behaviour.
index a91e95e..746a30b 100644 (file)
@@ -233,7 +233,11 @@ data TcGblEnv
         tcg_rn_imports :: [LImportDecl Name],
                -- Keep the renamed imports regardless.  They are not 
                -- voluminous and are needed if you want to report unused imports
         tcg_rn_imports :: [LImportDecl Name],
                -- Keep the renamed imports regardless.  They are not 
                -- voluminous and are needed if you want to report unused imports
+
         tcg_used_rdrnames :: TcRef (Set RdrName),
         tcg_used_rdrnames :: TcRef (Set RdrName),
+               -- The set of used *imported* (not locally-defined) RdrNames
+               -- Used only to report unused import declarations
+
        tcg_rn_decls :: Maybe (HsGroup Name),
           -- ^ Renamed decls, maybe.  @Nothing@ <=> Don't retain renamed
           -- decls.
        tcg_rn_decls :: Maybe (HsGroup Name),
           -- ^ Renamed decls, maybe.  @Nothing@ <=> Don't retain renamed
           -- decls.