Compute InScopeSet in substInteractiveContext
authorBartosz Nitka <niteria@gmail.com>
Tue, 26 Dec 2017 12:28:39 +0000 (12:28 +0000)
committerBartosz Nitka <niteria@gmail.com>
Tue, 26 Dec 2017 12:29:21 +0000 (12:29 +0000)
commite19b6464cc8ea498775074a680f91d3e5b5636d3
tree418396c9a63a206e7cafabc6bf0cc4a40a20ebca
parent02aaeabd585124f1394a3ad251b39b4ff368339b
Compute InScopeSet in substInteractiveContext

It doesn't look like we keep any sets of free variables
of the types of Ids handy, so we just have to build them
when doing a substitution.

Test Plan: buildbot + run testsuite with debug

Reviewers: simonmar, simonpj, austin, bgamari

Reviewed By: simonpj

Subscribers: carter, rwbarton, thomie

GHC Trac Issues: #11371

Differential Revision: https://phabricator.haskell.org/D3431
compiler/main/HscTypes.hs