[commit: ghc] master: Re-order preprocessor args to agree with User Guide (fixes #8602) (032969f)

git at git.haskell.org git at git.haskell.org
Tue Jan 7 14:30:29 UTC 2014


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

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

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

commit 032969f7c7493d774958e65e61690bd2a995fbbc
Author: Chris Heller <hellertime at gmail.com>
Date:   Thu Jan 2 16:55:52 2014 -0500

    Re-order preprocessor args to agree with User Guide (fixes #8602)
    
    The section of the User Guide in reference is 4.12.4
    
    Signed-off-by: Austin Seipp <austin at well-typed.com>


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

032969f7c7493d774958e65e61690bd2a995fbbc
 compiler/main/SysTools.lhs |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compiler/main/SysTools.lhs b/compiler/main/SysTools.lhs
index 46f8a86..d0545fd 100644
--- a/compiler/main/SysTools.lhs
+++ b/compiler/main/SysTools.lhs
@@ -395,7 +395,7 @@ runPp :: DynFlags -> [Option] -> IO ()
 runPp dflags args =   do
   let prog = pgm_F dflags
       opts = map Option (getOpts dflags opt_F)
-  runSomething dflags "Haskell pre-processor" prog (opts ++ args)
+  runSomething dflags "Haskell pre-processor" prog (args ++ opts)
 
 runCc :: DynFlags -> [Option] -> IO ()
 runCc dflags args =   do



More information about the ghc-commits mailing list