The -e flag now has a "SepArg" argument; fixes #3568
authorIan Lynagh <igloo@earth.li>
Mon, 12 Oct 2009 13:49:23 +0000 (13:49 +0000)
committerIan Lynagh <igloo@earth.li>
Mon, 12 Oct 2009 13:49:23 +0000 (13:49 +0000)
This means -e must be separated from its argument by a space.
It therefore doesn't try to parse "-exclude-module" as
"execute xclude-module".

ghc/Main.hs

index 2a9742d..8348897 100644 (file)
@@ -534,7 +534,7 @@ mode_flags =
          Supported
   , Flag "-abi-hash"    (PassFlag (setMode doAbiHashMode))
          Supported
-  , Flag "e"            (HasArg   (\s -> setMode (doEvalMode s) "-e"))
+  , Flag "e"            (SepArg   (\s -> setMode (doEvalMode s) "-e"))
          Supported
 
        -- -fno-code says to stop after Hsc but don't generate any code.