From: simonpj@microsoft.com Date: Fri, 3 Oct 2008 17:12:07 +0000 (+0000) Subject: Fix warnings X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=7129b3c1fb6386212ce0a544dd4dafcf96b2a106 Fix warnings --- 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