Skip to content
Snippets Groups Projects
Commit aa3dd11c authored by Simon Peyton Jones's avatar Simon Peyton Jones
Browse files

Typecheck an overloaded label as a "head"

When implementing Quick Look I'd failed to remember that overloaded
labels, like #foo, should be treated as a "head", so that they can
be instantiated with Visible Type Application.

This patch fixes the problem by moving the typechecking for overloaded
labels from GHC.Tc.Gen.Expr to GHC.Tc.Gen.Head.

It's also done a bit more elegantly, rather than by constructing a new
HsExpr and re-invoking the typechecker.

This was all shown up by #19154, which is now fixed.
parent b18d9e97
No related branches found
Tags 0_5
Loading
Checking pipeline status
Showing
with 853 additions and 553 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment