Just some alpha renaming
authorIan Lynagh <igloo@earth.li>
Sun, 21 Nov 2010 14:44:55 +0000 (14:44 +0000)
committerIan Lynagh <igloo@earth.li>
Sun, 21 Nov 2010 14:44:55 +0000 (14:44 +0000)
compiler/deSugar/Coverage.lhs
compiler/main/InteractiveEval.hs

index ea41d98..2d8afbd 100644 (file)
@@ -673,11 +673,11 @@ allocTickBox boxLabel pos m | isGoodSrcSpan' pos =
   sameFileName pos 
     (do e <- m; return (L pos e)) $ do
   (fvs, e) <- getFreeVars m
-  TM $ \ _env st ->
+  TM $ \ env st ->
     let c = tickBoxCount st
         ids = occEnvElts fvs
         mes = mixEntries st
-        me = (pos, declPath _env, map (nameOccName.idName) ids, boxLabel)
+        me = (pos, declPath env, map (nameOccName.idName) ids, boxLabel)
     in
     ( L pos (HsTick c ids (L pos e))
     , fvs
@@ -690,8 +690,8 @@ allocTickBox _boxLabel pos m = do e <- m; return (L pos e)
 allocATickBox :: BoxLabel -> SrcSpan -> FreeVars -> TM (Maybe (Int,[Id]))
 allocATickBox boxLabel pos fvs | isGoodSrcSpan' pos = 
   sameFileName pos 
-    (return Nothing) $ TM $ \ _env st ->
-  let me = (pos, declPath _env, map (nameOccName.idName) ids, boxLabel)
+    (return Nothing) $ TM $ \ env st ->
+  let me = (pos, declPath env, map (nameOccName.idName) ids, boxLabel)
       c = tickBoxCount st
       mes = mixEntries st
       ids = occEnvElts fvs
@@ -708,10 +708,10 @@ allocBinTickBox boxLabel pos m
  | isGoodSrcSpan' pos =
  do
  e <- m
- TM $ \ _env st ->
-  let meT = (pos,declPath _env, [],boxLabel True)
-      meF = (pos,declPath _env, [],boxLabel False)
-      meE = (pos,declPath _env, [],ExpBox False)
+ TM $ \ env st ->
+  let meT = (pos,declPath env, [],boxLabel True)
+      meF = (pos,declPath env, [],boxLabel False)
+      meE = (pos,declPath env, [],ExpBox False)
       c = tickBoxCount st
       mes = mixEntries st
   in 
index 6d4b9de..696f612 100644 (file)
@@ -142,7 +142,7 @@ data History
 
 mkHistory :: HscEnv -> HValue -> BreakInfo -> History
 mkHistory hsc_env hval bi = let
-    decls = findEnclosingDecl hsc_env bi
+    decls = findEnclosingDecls hsc_env bi
     in History hval bi decls
 
 
@@ -169,9 +169,9 @@ getModBreaks hmi
 -- ToDo: a better way to do this would be to keep hold of the decl_path computed
 -- by the coverage pass, which gives the list of lexically-enclosing bindings
 -- for each tick.
-findEnclosingDecl :: HscEnv -> BreakInfo -> [String]
-findEnclosingDecl hsc_env inf =
-   let hmi = expectJust "findEnclosingDecl" $
+findEnclosingDecls :: HscEnv -> BreakInfo -> [String]
+findEnclosingDecls hsc_env inf =
+   let hmi = expectJust "findEnclosingDecls" $
              lookupUFM (hsc_HPT hsc_env) (moduleName $ breakInfo_module inf)
        mb = getModBreaks hmi
    in modBreaks_decls mb ! breakInfo_number inf