Commit b9096df6 authored by Edward Z. Yang's avatar Edward Z. Yang

Add a note why tcGetInstEnvs is duplicated.

Signed-off-by: default avatarEdward Z. Yang <>
parent 44f1582e
......@@ -224,7 +224,8 @@ tcLookupInstance cls tys
extractTyVar (TyVarTy tv) = tv
extractTyVar _ = panic "TcEnv.tcLookupInstance: extractTyVar"
-- NB: duplicated to prevent circular dependence on Inst
tcGetInstEnvs = do { eps <- getEps; env <- getGblEnv;
; return (eps_inst_env eps, tcg_inst_env env)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment