Repository : ssh://darcs.haskell.org//srv/darcs/ghc On branch : master
http://hackage.haskell.org/trac/ghc/changeset/700d287fb11dadfd1e91875e2008c4002cd883a3 >--------------------------------------------------------------- commit 700d287fb11dadfd1e91875e2008c4002cd883a3 Author: Paolo Capriotti <[email protected]> Date: Mon Aug 13 18:26:34 2012 +0100 Fix environment update for type instance declarations in GHCi (#7117) Patch by Patrick Palka <[email protected]> >--------------------------------------------------------------- compiler/typecheck/TcInstDcls.lhs | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/compiler/typecheck/TcInstDcls.lhs b/compiler/typecheck/TcInstDcls.lhs index 64f961c..af52c42 100644 --- a/compiler/typecheck/TcInstDcls.lhs +++ b/compiler/typecheck/TcInstDcls.lhs @@ -432,7 +432,7 @@ addFamInsts :: [FamInst] -> TcM a -> TcM a -- (b) the type envt with stuff from data type decls addFamInsts fam_insts thing_inside = tcExtendLocalFamInstEnv fam_insts $ - tcExtendGlobalEnvImplicit things $ + tcExtendGlobalEnv things $ do { traceTc "addFamInsts" (pprFamInsts fam_insts) ; tcg_env <- tcAddImplicits things ; setGblEnv tcg_env thing_inside } _______________________________________________ Cvs-ghc mailing list [email protected] http://www.haskell.org/mailman/listinfo/cvs-ghc
