Re-working of the breakpoint support
[ghc-hetmet.git] / compiler / iface / TcIface.lhs
index d5cc5fd..b82685b 100644 (file)
@@ -50,7 +50,6 @@ import Maybes
 import SrcLoc
 import Util
 import DynFlags
-import Breakpoints
 import Control.Monad
 
 import Data.List
@@ -211,7 +210,7 @@ typecheckIface iface
                              , md_fam_insts = fam_insts
                              , md_rules     = rules
                              , md_exports   = exports
-                              , md_dbg_sites = noDbgSites
+                              , md_modBreaks = emptyModBreaks
                              }
     }
 \end{code}
@@ -547,12 +546,13 @@ tcIfaceRule (IfaceRule {ifRuleName = name, ifActivation = act, ifRuleBndrs = bnd
                   ; return (bndrs', args', rhs') }
        ; let mb_tcs = map ifTopFreeName args
         ; lcl <- getLclEnv
-        ; let this_module = if_mod lcl
        ; returnM (Rule { ru_name = name, ru_fn = fn, ru_act = act, 
                          ru_bndrs = bndrs', ru_args = args', 
                          ru_rhs = rhs', 
                          ru_rough = mb_tcs,
-                         ru_local = nameModule fn == this_module }) }
+                         ru_local = False }) } -- An imported RULE is never for a local Id
+                                               -- or, even if it is (module loop, perhaps)
+                                               -- we'll just leave it in the non-local set
   where
        -- This function *must* mirror exactly what Rules.topFreeName does
        -- We could have stored the ru_rough field in the iface file