Look through type synonyms in existential contexts when deriving Functor
Summary: This amounts to using `exactTyCoVarsOfType` instead of `tyCoVarsOfType` in the right place. I also fixed a similar issue for `-XDatatypeContexts` while I was in town (but couldn't be bothered to add a test for it). Test Plan: make test TEST=T13813 Reviewers: austin, bgamari, simonpj Reviewed By: simonpj Subscribers: simonpj, rwbarton, thomie GHC Trac Issues: #13813 Differential Revision: https://phabricator.haskell.org/D3635
Showing
- compiler/typecheck/TcDerivUtils.hs 16 additions, 2 deletionscompiler/typecheck/TcDerivUtils.hs
- testsuite/tests/deriving/should_compile/T13813.hs 13 additions, 0 deletionstestsuite/tests/deriving/should_compile/T13813.hs
- testsuite/tests/deriving/should_compile/all.T 1 addition, 0 deletionstestsuite/tests/deriving/should_compile/all.T
Please register or sign in to comment