summaryrefslogtreecommitdiff
path: root/testsuite/tests/polykinds/T17963.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/polykinds/T17963.hs')
-rw-r--r--testsuite/tests/polykinds/T17963.hs15
1 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/tests/polykinds/T17963.hs b/testsuite/tests/polykinds/T17963.hs
new file mode 100644
index 0000000000..ed609384d6
--- /dev/null
+++ b/testsuite/tests/polykinds/T17963.hs
@@ -0,0 +1,15 @@
+{-# Language DataKinds #-}
+{-# Language PolyKinds #-}
+{-# Language RankNTypes #-}
+{-# Language StandaloneKindSignatures #-}
+{-# Language TypeApplications #-}
+module T17963 where
+
+import GHC.Types (Constraint, Type, TYPE, RuntimeRep(..))
+
+type Cat :: forall (rep :: RuntimeRep). TYPE rep -> Type
+type Cat ob = ob -> ob -> Type
+
+type Category' :: forall rep (ob :: TYPE rep). Cat @rep ob -> Constraint
+class Category' (cat :: Cat @rep ob) where
+ id' :: forall a. cat a a