Fix Trac #2136: reporting of unused variables
authorsimonpj@microsoft.com <unknown>
Thu, 3 Apr 2008 11:02:50 +0000 (11:02 +0000)
committersimonpj@microsoft.com <unknown>
Thu, 3 Apr 2008 11:02:50 +0000 (11:02 +0000)
commit7502efdcd468b9a77385c5456481cf39f8eec79f
tree512fc9239c5badc12bdc8b962ed18c4c3da310d1
parent6e55d34a67e0fee21e4dc672bf5b33f03d8d1834
Fix Trac #2136: reporting of unused variables

There's a bit of a hack RnBinds.rnValBindsAndThen, documented
in Note [Unused binding hack].  But the hack was over brutal
before, and produced unnecssarily bad (absence of) warnings.
This patch does a bit of refactoring; and fixes the bug in
rnValBindsAndThen.
compiler/rename/RnBinds.lhs
compiler/rename/RnEnv.lhs
compiler/rename/RnExpr.lhs
compiler/rename/RnPat.lhs