Refactor RnEnv to fix Trac #2901
authorsimonpj@microsoft.com <unknown>
Tue, 30 Dec 2008 15:04:45 +0000 (15:04 +0000)
committersimonpj@microsoft.com <unknown>
Tue, 30 Dec 2008 15:04:45 +0000 (15:04 +0000)
commit04c3bfc687db82659a7fe5a8b0fa4244c52560b7
tree14cb7851e8782d8cd53dcb2aaaa21b9e4a4f0ee4
parentc37da9660c845b0199e730679c505fde3a6ab2c5
Refactor RnEnv to fix Trac #2901

This tidy-up fixes Trac #2901, and eliminates 20 lines of code.
Mainly this is done by making a version of lookupGlobalOccRn that
returns (Maybe Name); this replaces lookupSrcOccRn but does more.
compiler/rename/RnEnv.lhs
compiler/typecheck/TcInstDcls.lhs
compiler/typecheck/TcRnDriver.lhs
compiler/typecheck/TcSplice.lhs