summaryrefslogtreecommitdiff
path: root/compiler/GHC/Core/TyCo/Rep.hs-boot
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2022-11-28 15:36:25 +0000
committerSimon Peyton Jones <simonpj@microsoft.com>2022-11-29 08:37:50 +0000
commit3e695c2bfd97095a44f69f03b607e05876bbdc11 (patch)
treedde8bdf59b91ca0948842e59c1f93dc4b47e5c09 /compiler/GHC/Core/TyCo/Rep.hs-boot
parentb5d9558e6dcef2a6f1c315f5058eafd7113f9860 (diff)
downloadhaskell-wip/T22516.tar.gz
Use mkNakedFunTy in tcPatSynSigwip/T22516
As #22521 showed, in tcPatSynSig we make a "fake type" to kind-generalise; and that type has unzonked type variables in it. So we must not use `mkFunTy` (which checks FunTy's invariants) via `mkPhiTy` when building this type. Instead we need to use `mkNakedFunTy`. Easy fix.
Diffstat (limited to 'compiler/GHC/Core/TyCo/Rep.hs-boot')
-rw-r--r--compiler/GHC/Core/TyCo/Rep.hs-boot2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/GHC/Core/TyCo/Rep.hs-boot b/compiler/GHC/Core/TyCo/Rep.hs-boot
index c2dd2a63fe..a560e0d608 100644
--- a/compiler/GHC/Core/TyCo/Rep.hs-boot
+++ b/compiler/GHC/Core/TyCo/Rep.hs-boot
@@ -27,7 +27,7 @@ type MCoercionN = MCoercion
mkForAllTy :: VarBndr Var ForAllTyFlag -> Type -> Type
mkNakedTyConTy :: TyCon -> Type
-mkNakedKindFunTy :: FunTyFlag -> Type -> Type -> Type
+mkNakedFunTy :: FunTyFlag -> Type -> Type -> Type
-- To support Data instances in GHC.Core.Coercion.Axiom