[commit: ghc] master: Comment (a51c4b5)

git at git.haskell.org git at git.haskell.org
Thu Nov 21 13:28:10 UTC 2013


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

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

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

commit a51c4b55808b7b01eb8d1235db2e029faeb41ab0
Author: Simon Marlow <marlowsd at gmail.com>
Date:   Thu Nov 21 09:47:24 2013 +0000

    Comment


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

a51c4b55808b7b01eb8d1235db2e029faeb41ab0
 compiler/main/HscMain.hs |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/compiler/main/HscMain.hs b/compiler/main/HscMain.hs
index 7f70cab..417fee4 100644
--- a/compiler/main/HscMain.hs
+++ b/compiler/main/HscMain.hs
@@ -634,6 +634,9 @@ hscCompileOneShot' hsc_env extCore_filename mod_summary src_changed
                            liftIO $ hscWriteIface dflags iface changed mod_summary
                            return $ HscRecomp cgguts mod_summary
 
+        -- XXX This is always False, because in one-shot mode the
+        -- concept of stability does not exist.  The driver never
+        -- passes SourceUnmodifiedAndStable in here.
         stable = case src_changed of
                      SourceUnmodifiedAndStable -> True
                      _                         -> False



More information about the ghc-commits mailing list