Fix bug #763: Breakpoint mechanism crashes when there's a type error.
authorLemmih <lemmih@gmail.com>
Fri, 5 May 2006 23:21:58 +0000 (23:21 +0000)
committerLemmih <lemmih@gmail.com>
Fri, 5 May 2006 23:21:58 +0000 (23:21 +0000)
compiler/typecheck/TcRnMonad.lhs

index a287014..a795339 100644 (file)
@@ -152,9 +152,9 @@ initTc hsc_env hsc_src mod do_this
                                     = 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