Fix Trac #3823, plus warning police in TcRnDriver
authorsimonpj@microsoft.com <unknown>
Wed, 20 Jan 2010 09:42:21 +0000 (09:42 +0000)
committersimonpj@microsoft.com <unknown>
Wed, 20 Jan 2010 09:42:21 +0000 (09:42 +0000)
commitdfa43eb4dd7cd898b4a0f55f51d1eace71f22762
treeec78c4e0cabbc212ec5b5270080102dcf55113ee
parentd1aa0f9622efacd2f0b5eb7ca0471669011e8f1f
Fix Trac #3823, plus warning police in TcRnDriver

The immediate reason for this patch is to fix #3823. This was
rather easy: all the work was being done but I was returning
type_env2 rather than type_env3.

An unused-veriable warning would have shown this up, so I fixed all
the other warnings in TcRnDriver.  Doing so showed up at least two
genuine lurking bugs.  Hurrah.
compiler/typecheck/TcRnDriver.lhs
compiler/typecheck/TcTyClsDecls.lhs