X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2Ftypecheck%2FTcEnv.lhs;h=1c77e4d12903d84dd05dd2e2255cef888f15e548;hb=4e3255388e8b99ccdae290bfcb6cd666b8c93d4a;hp=6ac4272f4adda6295a15bb98545fb36b350c61cb;hpb=d32c5227315009f38355fe3233f0f4e5b1f61dc6;p=ghc-hetmet.git diff --git a/ghc/compiler/typecheck/TcEnv.lhs b/ghc/compiler/typecheck/TcEnv.lhs index 6ac4272..1c77e4d 100644 --- a/ghc/compiler/typecheck/TcEnv.lhs +++ b/ghc/compiler/typecheck/TcEnv.lhs @@ -15,8 +15,6 @@ module TcEnv( tcLookupLocatedGlobalId, tcLookupLocatedTyCon, tcLookupLocatedClass, tcLookupLocatedDataCon, - getInGlobalScope, - -- Local environment tcExtendKindEnv, tcExtendTyVarEnv, tcExtendTyVarEnv2, @@ -174,21 +172,6 @@ tcExtendGlobalValEnv ids thing_inside = tcExtendGlobalEnv [AnId id | id <- ids] thing_inside \end{code} -A variety of global lookups, when we know what we are looking for. - -\begin{code} -getInGlobalScope :: TcM (Name -> Bool) --- Get all things in the global environment; used for deciding what --- rules to suck in. Anything defined in this module (nameIsLocalOrFrom) --- is certainly in the envt, so we don't bother to look. -getInGlobalScope - = do { mod <- getModule - ; (eps,hpt) <- getEpsAndHpt - ; return (\n -> nameIsLocalOrFrom mod n || - isJust (lookupType hpt (eps_PTE eps) n)) } -\end{code} - - \begin{code} tcExtendRecEnv :: [(Name,TyThing)] -> TcM r -> TcM r -- Extend the global environments for the type/class knot tying game