summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2008-06-14 14:20:56 +0000
committerIan Lynagh <igloo@earth.li>2008-06-14 14:20:56 +0000
commitf586a36da133d01607f1936f771722e88b3b3574 (patch)
tree764c1b41540aec4845dd45f93dc04dded0381484
parent0079141c61f673039ccd879cd75174b33eb40b8f (diff)
downloadhaskell-f586a36da133d01607f1936f771722e88b3b3574.tar.gz
eta-reduce a Monad type synonym, so we can use it non-applied
-rw-r--r--compiler/main/Main.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/main/Main.hs b/compiler/main/Main.hs
index 57cf28ea4e..de72089b1c 100644
--- a/compiler/main/Main.hs
+++ b/compiler/main/Main.hs
@@ -363,11 +363,11 @@ parseModeFlags args = do
throwDyn (UsageError (unlines errs))
return (mode, flags ++ leftover)
-type ModeM a = CmdLineP (CmdLineMode, String, [String]) a
+type ModeM = CmdLineP (CmdLineMode, String, [String])
-- mode flags sometimes give rise to new DynFlags (eg. -C, see below)
-- so we collect the new ones and return them.
-mode_flags :: [Flag (CmdLineP (CmdLineMode, String, [String]))]
+mode_flags :: [Flag ModeM]
mode_flags =
[ ------- help / version ----------------------------------------------
Flag "?" (PassFlag (setMode ShowUsage))