summaryrefslogtreecommitdiff
path: root/ghc/Main.hs
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2009-10-12 13:49:23 +0000
committerIan Lynagh <igloo@earth.li>2009-10-12 13:49:23 +0000
commit218c7fe5cce74b8e8c3ef290d348e6576a0045fb (patch)
treea33f35eeb648d43c95ecf781321b126b85b1960a /ghc/Main.hs
parent8ee215b9aa2fe37b435e404aad8bb07c6ce1836d (diff)
downloadhaskell-218c7fe5cce74b8e8c3ef290d348e6576a0045fb.tar.gz
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".
Diffstat (limited to 'ghc/Main.hs')
-rw-r--r--ghc/Main.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ghc/Main.hs b/ghc/Main.hs
index 2a9742d75f..8348897bd3 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.