Removed unnecessary code
authorPepe Iborra <mnislaih@gmail.com>
Mon, 19 Feb 2007 12:21:34 +0000 (12:21 +0000)
committerPepe Iborra <mnislaih@gmail.com>
Mon, 19 Feb 2007 12:21:34 +0000 (12:21 +0000)
The breakpointJump functions never show up in the code that the typechecker sees, as they are inserted by the desugarer later.

compiler/typecheck/TcRnMonad.lhs

index 6a7f4fb..f2566c3 100644 (file)
@@ -160,28 +160,8 @@ initTcPrintErrors env mod todo = do
 \begin{code}
 addBreakpointBindings :: TcM a -> TcM a
 addBreakpointBindings thing_inside
-#if defined(GHCI)
-  = do { unique <- newUnique
-        ; let { var = mkInternalName unique (mkOccName tvName "a") noSrcLoc;
-                tyvar = mkTyVar var liftedTypeKind;
-                basicType extra = (FunTy intTy
-                                   (FunTy (mkListTy unitTy)
-                                    (FunTy stringTy
-                                     (ForAllTy tyvar
-                                      (extra
-                                       (FunTy (TyVarTy tyvar)
-                                        (TyVarTy tyvar)))))));
-                breakpointJumpId
-                    = Id.mkGlobalId VanillaGlobal breakpointJumpName
-                                 (basicType id) vanillaIdInfo;
-                breakpointCondJumpId
-                    = Id.mkGlobalId VanillaGlobal breakpointCondJumpName
-                                 (basicType (FunTy boolTy)) vanillaIdInfo
-         }
-       ; tcExtendIdEnv [breakpointJumpId, breakpointCondJumpId] thing_inside}
-#else
    = thing_inside
-#endif
+
 \end{code}
 
 %************************************************************************