#11371: Bogus in-scope set in substitutions -------------------------------------+------------------------------------- Reporter: simonpj | Owner: niteria Type: bug | Status: new Priority: high | Milestone: 8.2.1 Component: Compiler | Version: 7.10.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #11360 | Differential Rev(s): phab:D1792, Wiki Page: | phab:D1801, phab:D1802 -------------------------------------+------------------------------------- Comment (by Ben Gamari <ben@…>): In [changeset:"a49228e3b6e3737da750bce59ec721b3b2f18eed/ghc" a49228e/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="a49228e3b6e3737da750bce59ec721b3b2f18eed" Build correct substitution in instDFunType We will use `ty` in the range of the substitution, hence the substitution needs `ty`'s free vars in-scope. They don't seem easily available by other means, so we just compute them. Test Plan: ./validate Reviewers: austin, goldfire, bgamari, simonpj Reviewed By: simonpj Subscribers: thomie, simonmar Differential Revision: https://phabricator.haskell.org/D2043 GHC Trac Issues: #11371 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11371#comment:55> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler