projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
0079141
)
eta-reduce a Monad type synonym, so we can use it non-applied
author
Ian Lynagh
<igloo@earth.li>
Sat, 14 Jun 2008 14:20:56 +0000
(14:20 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Sat, 14 Jun 2008 14:20:56 +0000
(14:20 +0000)
compiler/main/Main.hs
patch
|
blob
|
history
diff --git
a/compiler/main/Main.hs
b/compiler/main/Main.hs
index
57cf28e
..
de72089
100644
(file)
--- 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)
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 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))
mode_flags =
[ ------- help / version ----------------------------------------------
Flag "?" (PassFlag (setMode ShowUsage))