From 7129b3c1fb6386212ce0a544dd4dafcf96b2a106 Mon Sep 17 00:00:00 2001 From: "simonpj@microsoft.com" Date: Fri, 3 Oct 2008 17:12:07 +0000 Subject: [PATCH] Fix warnings --- compiler/rename/RnBinds.lhs | 1 - compiler/typecheck/TcEnv.lhs | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/compiler/rename/RnBinds.lhs b/compiler/rename/RnBinds.lhs index e2dc69c..23a22c9 100644 --- a/compiler/rename/RnBinds.lhs +++ b/compiler/rename/RnBinds.lhs @@ -312,7 +312,6 @@ rnValBindsRHSGen :: (FreeVars -> FreeVars) -- for trimming free var sets rnValBindsRHSGen trim bound_names (ValBindsIn mbinds sigs) = do -- rename the sigs - env <- getGblEnv sigs' <- renameSigs (Just (mkNameSet bound_names)) okBindSig sigs -- rename the RHSes binds_w_dus <- mapBagM (rnBind (mkSigTvFn sigs') trim) mbinds diff --git a/compiler/typecheck/TcEnv.lhs b/compiler/typecheck/TcEnv.lhs index 259e946..b0678c7 100644 --- a/compiler/typecheck/TcEnv.lhs +++ b/compiler/typecheck/TcEnv.lhs @@ -68,7 +68,6 @@ import TyCon import TypeRep import Class import Name -import PrelNames import NameEnv import OccName import HscTypes @@ -590,8 +589,7 @@ tcMetaTy tc_name = do thRnBrack :: ThStage -- Used *only* to indicate that we are inside a TH bracket during renaming -- Tested by TcEnv.isBrackStage --- This is a slight hack, used to ensure that --- * top-level +-- See Note [Top-level Names in Template Haskell decl quotes] thRnBrack = Brack (panic "thRnBrack1") (panic "thRnBrack2") (panic "thRnBrack3") isBrackStage :: ThStage -> Bool -- 1.7.10.4