import SrcLoc ( SrcSpan, noSrcLoc, interactiveSrcLoc, srcLocSpan, noSrcSpan, unLoc )
import VarSet
import VarEnv ( emptyTidyEnv )
+import Panic
#endif
import Id ( Id )
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