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:
9494994
)
Panic in the right way
author
simonpj@microsoft.com
<unknown>
Wed, 25 Aug 2010 09:16:14 +0000
(09:16 +0000)
committer
simonpj@microsoft.com
<unknown>
Wed, 25 Aug 2010 09:16:14 +0000
(09:16 +0000)
compiler/main/HscMain.lhs
patch
|
blob
|
history
diff --git
a/compiler/main/HscMain.lhs
b/compiler/main/HscMain.lhs
index
3ab10a4
..
93ad614
100644
(file)
--- a/
compiler/main/HscMain.lhs
+++ b/
compiler/main/HscMain.lhs
@@
-54,6
+54,7
@@
import DsMeta ( templateHaskellNames )
import SrcLoc ( SrcSpan, noSrcLoc, interactiveSrcLoc, srcLocSpan, noSrcSpan, unLoc )
import VarSet
import VarEnv ( emptyTidyEnv )
+import Panic
#endif
import Id ( Id )
@@
-1027,7
+1028,7
@@
compileExpr :: HscEnv -> SrcSpan -> CoreExpr -> IO HValue
compileExpr hsc_env srcspan ds_expr
| rtsIsProfiled
- = panic "You can't call compileExpr in a profiled compiler"
+ = throwIO (InstallationError "You can't call compileExpr in a profiled compiler")
-- Otherwise you get a seg-fault when you run it
| otherwise