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:
0fa697b
)
Fix bug #763: Breakpoint mechanism crashes when there's a type error.
author
Lemmih
<lemmih@gmail.com>
Fri, 5 May 2006 23:21:58 +0000
(23:21 +0000)
committer
Lemmih
<lemmih@gmail.com>
Fri, 5 May 2006 23:21:58 +0000
(23:21 +0000)
compiler/typecheck/TcRnMonad.lhs
patch
|
blob
|
history
diff --git
a/compiler/typecheck/TcRnMonad.lhs
b/compiler/typecheck/TcRnMonad.lhs
index
a287014
..
a795339
100644
(file)
--- a/
compiler/typecheck/TcRnMonad.lhs
+++ b/
compiler/typecheck/TcRnMonad.lhs
@@
-152,9
+152,9
@@
initTc hsc_env hsc_src mod do_this
= mkGlobalId VanillaGlobal breakpointCondJumpName
(basicType (FunTy boolTy)) vanillaIdInfo;
new_env = mkNameEnv [(breakpointJumpName
= mkGlobalId VanillaGlobal breakpointCondJumpName
(basicType (FunTy boolTy)) vanillaIdInfo;
new_env = mkNameEnv [(breakpointJumpName
- , AGlobal (AnId breakpointJumpType))
- ,(breakpointCondJumpName
- , AGlobal (AnId breakpointCondJumpType))];
+ , ATcId breakpointJumpType topLevel False)
+ ,(breakpointCondJumpName
+ , ATcId breakpointCondJumpType topLevel False)];
};
r <- tryM (updLclEnv (\gbl -> gbl{tcl_env=new_env}) do_this)
#else
};
r <- tryM (updLclEnv (\gbl -> gbl{tcl_env=new_env}) do_this)
#else