summaryrefslogtreecommitdiff
path: root/testsuite/tests/polykinds
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/polykinds')
-rw-r--r--testsuite/tests/polykinds/T16902.stderr11
-rw-r--r--testsuite/tests/polykinds/T18522-ppr.script4
-rw-r--r--testsuite/tests/polykinds/T18522-ppr.stdout2
3 files changed, 6 insertions, 11 deletions
diff --git a/testsuite/tests/polykinds/T16902.stderr b/testsuite/tests/polykinds/T16902.stderr
index a918f90b95..baa9777849 100644
--- a/testsuite/tests/polykinds/T16902.stderr
+++ b/testsuite/tests/polykinds/T16902.stderr
@@ -1,9 +1,4 @@
-T16902.hs:12:10: error: [GHC-25897]
- • Expected a type, but found something with kind ‘a’
- ‘a’ is a rigid type variable bound by
- the type signature for ‘MkF’
- at T16902.hs:12:3-12
- • In the type ‘F a’
- In the definition of data constructor ‘MkF’
- In the data declaration for ‘F’
+T16902.hs:11:1: error: [GHC-01259]
+ • Illegal constraint in a kind: (a ~~ k) => *
+ • In the data type declaration for ‘F’
diff --git a/testsuite/tests/polykinds/T18522-ppr.script b/testsuite/tests/polykinds/T18522-ppr.script
index 54d3619c6e..e91cc1ce88 100644
--- a/testsuite/tests/polykinds/T18522-ppr.script
+++ b/testsuite/tests/polykinds/T18522-ppr.script
@@ -1,4 +1,4 @@
-:set -XPolyKinds -XDataKinds -XRankNTypes -XTypeFamilies
+:set -XPolyKinds -XDataKinds -XRankNTypes -XTypeFamilies -fprint-explicit-foralls
import Data.Kind (Type)
-type family T :: forall k -> (k ~ k) => forall j -> k -> j -> Type
+type family T :: forall a -> ()
:k T
diff --git a/testsuite/tests/polykinds/T18522-ppr.stdout b/testsuite/tests/polykinds/T18522-ppr.stdout
index 241530bbed..ce5cea6b49 100644
--- a/testsuite/tests/polykinds/T18522-ppr.stdout
+++ b/testsuite/tests/polykinds/T18522-ppr.stdout
@@ -1 +1 @@
-T :: forall k -> (k ~ k) => forall j -> k -> j -> *
+T :: forall {k}. forall (a :: k) -> ()