From: Ian Lynagh Date: Mon, 12 Oct 2009 13:49:23 +0000 (+0000) Subject: The -e flag now has a "SepArg" argument; fixes #3568 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=218c7fe5cce74b8e8c3ef290d348e6576a0045fb The -e flag now has a "SepArg" argument; fixes #3568 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". --- diff --git a/ghc/Main.hs b/ghc/Main.hs index 2a9742d..8348897 100644 --- a/ghc/Main.hs +++ b/ghc/Main.hs @@ -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.