summaryrefslogtreecommitdiff
path: root/testsuite/tests/partial-sigs/should_compile/AddAndOr2.stderr
diff options
context:
space:
mode:
authorRyan Scott <ryan.gl.scott@gmail.com>2020-06-29 20:19:41 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-07-01 15:44:01 -0400
commit76d8cc744977d98f6a427b1816198709e2d2e856 (patch)
tree01d56926bea8d5acc23d91b0809b3955073c7204 /testsuite/tests/partial-sigs/should_compile/AddAndOr2.stderr
parent5c9fabb82b39aed9e61c6b78c72312b20a568c68 (diff)
downloadhaskell-76d8cc744977d98f6a427b1816198709e2d2e856.tar.gz
Desugar quoted uses of DerivingVia and expression type signatures properly
The way that `GHC.HsToCore.Quote` desugared quoted `via` types (e.g., `deriving via forall a. [a] instance Eq a => Eq (List a)`) and explicit type annotations in signatures (e.g., `f = id @a :: forall a. a -> a`) was completely wrong, as it did not implement the scoping guidelines laid out in `Note [Scoped type variables in bindings]`. This is easily fixed. While I was in town, I did some minor cleanup of related Notes: * `Note [Scoped type variables in bindings]` and `Note [Scoped type variables in class and instance declarations]` say very nearly the same thing. I decided to just consolidate the two Notes into `Note [Scoped type variables in quotes]`. * `Note [Don't quantify implicit type variables in quotes]` is somewhat outdated, as it predates GHC 8.10, where the `forall`-or-nothing rule requires kind variables to be explicitly quantified in the presence of an explicit `forall`. As a result, the running example in that Note doesn't even compile. I have changed the example to something simpler that illustrates the same point that the original Note was making. Fixes #18388.
Diffstat (limited to 'testsuite/tests/partial-sigs/should_compile/AddAndOr2.stderr')
0 files changed, 0 insertions, 0 deletions