X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2FdeSugar%2FDsExpr.lhs;h=a93b1d7461738c710969cf0aa218ebe16c90b36e;hp=e8e9e7b37000c4cf0b7548afac96cd9535a9a984;hb=0fa697bca153468bf073aad1fe02d5b4055059f2;hpb=a9da016ad847161f8209ba116079c059c7d3406a diff --git a/compiler/deSugar/DsExpr.lhs b/compiler/deSugar/DsExpr.lhs index e8e9e7b..a93b1d7 100644 --- a/compiler/deSugar/DsExpr.lhs +++ b/compiler/deSugar/DsExpr.lhs @@ -11,7 +11,7 @@ module DsExpr ( dsExpr, dsLExpr, dsLocalBinds, dsValBinds, dsLit ) where import Foreign.StablePtr ( newStablePtr, castStablePtrToPtr ) import GHC.Exts ( Ptr(..), Int(..), addr2Int# ) import IOEnv ( ioToIOEnv ) -import PrelNames ( breakpointJumpName ) +import PrelNames ( breakpointJumpName, breakpointCondJumpName ) import TysWiredIn ( unitTy ) import TypeRep ( Type(..) ) #endif @@ -215,7 +215,7 @@ dsExpr expr@(HsLam a_Match) #if defined(GHCI) && defined(BREAKPOINT) dsExpr (HsApp (L _ (HsApp realFun@(L _ (HsCoerce _ fun)) (L loc arg))) _) | HsVar funId <- fun - , idName funId == breakpointJumpName + , idName funId `elem` [breakpointJumpName, breakpointCondJumpName] , ids <- filter (not.hasTyVar.idType) (extractIds arg) = do dsWarn (text "Extracted ids:" <+> ppr ids <+> ppr (map idType ids)) stablePtr <- ioToIOEnv $ newStablePtr ids