From e6396ceaf29d592785944ca9f4086595d1137836 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Sun, 21 Nov 2010 14:44:55 +0000 Subject: [PATCH] Just some alpha renaming --- compiler/deSugar/Coverage.lhs | 16 ++++++++-------- compiler/main/InteractiveEval.hs | 8 ++++---- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/compiler/deSugar/Coverage.lhs b/compiler/deSugar/Coverage.lhs index ea41d98..2d8afbd 100644 --- a/compiler/deSugar/Coverage.lhs +++ b/compiler/deSugar/Coverage.lhs @@ -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 diff --git a/compiler/main/InteractiveEval.hs b/compiler/main/InteractiveEval.hs index 6d4b9de..696f612 100644 --- a/compiler/main/InteractiveEval.hs +++ b/compiler/main/InteractiveEval.hs @@ -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 -- 1.7.10.4