From 218c7fe5cce74b8e8c3ef290d348e6576a0045fb Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Mon, 12 Oct 2009 13:49:23 +0000 Subject: [PATCH] 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". --- ghc/Main.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 1.7.10.4