Commit 8ee215b9 authored by Ian Lynagh's avatar Ian Lynagh

Print warnings after doMkDependHS

We weren't printing any warning for a commandline like
    ghc -M Foo.hs -optdep--exclude-module=Bar -fffi
but the last 2 flags are both deprecated.
parent 02067999
......@@ -208,7 +208,8 @@ main' postLoadMode dflags0 args flagWarnings = do
case postLoadMode of
ShowInterface f -> liftIO $ doShowIface dflags3 f
DoMake -> doMake srcs
DoMkDependHS -> doMkDependHS (map fst srcs)
DoMkDependHS -> do doMkDependHS (map fst srcs)
StopBefore p -> oneShot hsc_env p srcs >> GHC.printWarnings
DoInteractive -> interactiveUI srcs Nothing
DoEval exprs -> interactiveUI srcs $ Just $ reverse exprs
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment