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:
0729e74
)
follow changes in the GHC API
author
Simon Marlow
<marlowsd@gmail.com>
Wed, 27 Oct 2010 11:10:03 +0000
(11:10 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Wed, 27 Oct 2010 11:10:03 +0000
(11:10 +0000)
utils/ghctags/Main.hs
patch
|
blob
|
history
diff --git
a/utils/ghctags/Main.hs
b/utils/ghctags/Main.hs
index
9093e03
..
0778784
100644
(file)
--- a/
utils/ghctags/Main.hs
+++ b/
utils/ghctags/Main.hs
@@
-195,7
+195,7
@@
safeLoad :: LoadHowMuch -> Ghc SuccessFlag
safeLoad mode = do
_dflags <- getSessionDynFlags
ghandle (\(e :: SomeException) -> liftIO (print e) >> return Failed ) $
safeLoad mode = do
_dflags <- getSessionDynFlags
ghandle (\(e :: SomeException) -> liftIO (print e) >> return Failed ) $
- handleSourceError (\e -> printExceptionAndWarnings e >> return Failed) $
+ handleSourceError (\e -> printException e >> return Failed) $
load mode
load mode
@@
-221,7
+221,7
@@
graphData graph handles = do
let filename = msHsFilePath ms
modname = moduleName $ ms_mod ms
in handleSourceError (\e -> do
let filename = msHsFilePath ms
modname = moduleName $ ms_mod ms
in handleSourceError (\e -> do
- printExceptionAndWarnings e
+ printException e
liftIO $ exitWith (ExitFailure 1)) $
do liftIO $ putStrLn ("loading " ++ filename)
mod <- loadModule =<< typecheckModule =<< parseModule ms
liftIO $ exitWith (ExitFailure 1)) $
do liftIO $ putStrLn ("loading " ++ filename)
mod <- loadModule =<< typecheckModule =<< parseModule ms