projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace uses of the old catch function with the new one
[ghc-hetmet.git]
/
compiler
/
parser
/
ParserCoreUtils.hs
diff --git
a/compiler/parser/ParserCoreUtils.hs
b/compiler/parser/ParserCoreUtils.hs
index
2c88aa7
..
8f67d96
100644
(file)
--- a/
compiler/parser/ParserCoreUtils.hs
+++ b/
compiler/parser/ParserCoreUtils.hs
@@
-1,5
+1,6
@@
module ParserCoreUtils where
module ParserCoreUtils where
+import Exception
import System.IO
data ParseResult a = OkP a | FailP String
import System.IO
data ParseResult a = OkP a | FailP String
@@
-19,7
+20,7
@@
failP s s' _ = FailP (s ++ ":" ++ s')
getCoreModuleName :: FilePath -> IO String
getCoreModuleName fpath =
getCoreModuleName :: FilePath -> IO String
getCoreModuleName fpath =
- catch (do
+ catchIO (do
h <- openFile fpath ReadMode
ls <- hGetContents h
let mo = findMod (words ls)
h <- openFile fpath ReadMode
ls <- hGetContents h
let mo = findMod (words ls)