projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdaf0e5
)
[project @ 2001-07-03 11:14:33 by simonmar]
author
simonmar
<unknown>
Tue, 3 Jul 2001 11:14:33 +0000
(11:14 +0000)
committer
simonmar
<unknown>
Tue, 3 Jul 2001 11:14:33 +0000
(11:14 +0000)
Better exit with a failure code in ghc --make if something went wrong...
ghc/compiler/main/Main.hs
patch
|
blob
|
history
diff --git
a/ghc/compiler/main/Main.hs
b/ghc/compiler/main/Main.hs
index
5cf7ddf
..
bf34a74
100644
(file)
--- a/
ghc/compiler/main/Main.hs
+++ b/
ghc/compiler/main/Main.hs
@@
-1,6
+1,6
@@
{-# OPTIONS -fno-warn-incomplete-patterns #-}
-----------------------------------------------------------------------------
--- $Id: Main.hs,v 1.78 2001/06/29 15:30:49 simonmar Exp $
+-- $Id: Main.hs,v 1.79 2001/07/03 11:14:33 simonmar Exp $
--
-- GHC Driver program
--
@@
-318,7
+318,8
@@
beginMake fileish_args
case mods of
[] -> throwDyn (UsageError "no input files")
mod -> do state <- cmInit Batch
- cmLoadModule state mods
+ (_, ok, _) <- cmLoadModule state mods
+ when (not ok) (exitWith (ExitFailure 1))
return ()