Fix Trac #3813: unused variables in GHCi bindings
authorsimonpj@microsoft.com <unknown>
Wed, 20 Jan 2010 09:45:33 +0000 (09:45 +0000)
committersimonpj@microsoft.com <unknown>
Wed, 20 Jan 2010 09:45:33 +0000 (09:45 +0000)
commit85f969a6585c06168645114d9524e7169dbc6e32
tree91178fba1dd543a069601f0484c63e597b66e86d
parentdfa43eb4dd7cd898b4a0f55f51d1eace71f22762
Fix Trac #3813: unused variables in GHCi bindings

In a GHCi stmt we don't want to report unused variables,
because we don't know the scope of the binding, eg

Prelude> x <- blah

Fixing this needed a little more info about the context of the stmt,
thus the new constructor GhciStmt in the HsStmtContext type.
compiler/deSugar/DsExpr.lhs
compiler/deSugar/DsMeta.hs
compiler/hsSyn/HsExpr.lhs
compiler/rename/RnEnv.lhs
compiler/rename/RnPat.lhs
compiler/typecheck/TcMatches.lhs
compiler/typecheck/TcRnDriver.lhs