summaryrefslogtreecommitdiff
path: root/compiler/GHC/Core/Utils.hs
diff options
context:
space:
mode:
authorRyan Scott <ryan.gl.scott@gmail.com>2021-04-29 17:35:47 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-04-30 23:22:48 -0400
commit460afbe676715e4b8d75af79e9700ceebcf62eed (patch)
tree7064b263e14dcc9f7e4979f3becdf9775d8bd715 /compiler/GHC/Core/Utils.hs
parent6623790d7486b2b1a1863538dbb2b65234ecaaa6 (diff)
downloadhaskell-460afbe676715e4b8d75af79e9700ceebcf62eed.tar.gz
Bring tcTyConScopedTyVars into scope in tcClassDecl2
It is possible that the type variables bound by a class header will map to something different in the typechecker in the presence of `StandaloneKindSignatures`. `tcClassDecl2` was not aware of this, however, leading to #19738. To fix it, in `tcTyClDecls` we map each class `TcTyCon` to its `tcTyConScopedTyVars` as a `ClassScopedTVEnv`. We then plumb that `ClassScopedTVEnv` to `tcClassDecl2` where it can be used. Fixes #19738.
Diffstat (limited to 'compiler/GHC/Core/Utils.hs')
0 files changed, 0 insertions, 0 deletions