Pass InScopeSet to substTy in lintTyApp
authorBartosz Nitka <niteria@gmail.com>
Thu, 21 Jan 2016 19:30:07 +0000 (11:30 -0800)
committerBartosz Nitka <niteria@gmail.com>
Tue, 26 Jan 2016 13:36:55 +0000 (05:36 -0800)
commit01809bcd4c9066244d705360f0d9a3a2176385f4
treef442ad328058bd878c403628b2ad0e923d2bfbb3
parent3798b2aad8f62cb18e6147b54c57a9a4ad6c23f4
Pass InScopeSet to substTy in lintTyApp

This is the fix proposed in #11371:
```
In other cases, we already have the in-scope set in hand. Example: in
CoreLint.lintTyApp we find a call to substTyWith. But Lint carries an
in-scope set, so it would be easy to pass it to substTyWith.
```

Test Plan: ./validate --slow (only pre-existing problems)

Reviewers: simonpj, goldfire, austin, nomeata, bgamari

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D1820

GHC Trac Issues: #11371
compiler/coreSyn/CoreLint.hs
compiler/types/TyCoRep.hs