Build a correct substitution in dataConInstPat
authorBartosz Nitka <niteria@gmail.com>
Wed, 20 Apr 2016 16:35:47 +0000 (09:35 -0700)
committerBartosz Nitka <niteria@gmail.com>
Wed, 20 Apr 2016 16:36:25 +0000 (09:36 -0700)
commit62943d2adc51c4a7a61bb1f48fd245791acfffe9
tree5a2fa3ce5ba4d65423e3b69c2c5ec87cbde4adcf
parent687c77808b82e8cf8c77fba2c0ed2fe003c907cf
Build a correct substitution in dataConInstPat

This adds the tyvars of the domain of the substitution into the in-scope
set as well.
What I'm not sure here is if the kinds can have any free vars that
should be in the in-scope set as well.

Test Plan: ./validate

Reviewers: goldfire, austin, bgamari, simonpj

Reviewed By: simonpj

Subscribers: thomie, simonmar

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

GHC Trac Issues: #11371
compiler/coreSyn/CoreUtils.hs
compiler/types/Type.hs