diff options
author | sheaf <sam.derbyshire@gmail.com> | 2023-01-31 11:41:04 +0100 |
---|---|---|
committer | sheaf <sam.derbyshire@gmail.com> | 2023-01-31 11:41:04 +0100 |
commit | 5da40ae13359f4fac3dfe5ff30ac33c469b730d5 (patch) | |
tree | c54b2fc2d32687d78ad358f36196e32a530ad68b /utils/haddock | |
parent | bc038c3bd45ee99db9fba23a823a906735740200 (diff) | |
download | haskell-wip/instd-quantifications.tar.gz |
TH: handle explicit quantification in instanceswip/instd-quantifications
This patch adds support for explicitly-written quantification in
typeclass instances, such as:
instance forall k (a :: k). C a
deriving instance forall k (a :: k). D a
It does so by adding a field of type `Maybe (TyVarBndr ())`
to both the `InstanceD` and `StandaloneDerivD` constructors of the
Template Haskell `Dec` datatype, and making appropriate use of it to
ensure that spliced declarations don't silently drop the user-written
quantification.
Fixes #21794
Updates haddock submodule
Diffstat (limited to 'utils/haddock')
m--------- | utils/haddock | 0 |
1 files changed, 0 insertions, 0 deletions
diff --git a/utils/haddock b/utils/haddock -Subproject 519a95998b09a2c9c7a42c3a0cf2ca0c4358bb4 +Subproject b50bc29c190ca0f6ca35a6fcbd1657b0d28753c |