summaryrefslogtreecommitdiff
path: root/testsuite/tests/polykinds/T12055a.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/polykinds/T12055a.hs')
-rw-r--r--testsuite/tests/polykinds/T12055a.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/testsuite/tests/polykinds/T12055a.hs b/testsuite/tests/polykinds/T12055a.hs
index ebc4dc7cad..e1fcd07663 100644
--- a/testsuite/tests/polykinds/T12055a.hs
+++ b/testsuite/tests/polykinds/T12055a.hs
@@ -6,6 +6,7 @@
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE PolyKinds #-}
+{-# LANGUAGE StandaloneKindSignatures #-}
{-# LANGUAGE FlexibleInstances, UndecidableInstances, FunctionalDependencies #-}
@@ -21,9 +22,11 @@ import GHC.Exts ( type (~~) )
type Cat k = k -> k -> Type
+type Category :: Cat k -> Constraint
class Category (p :: Cat k) where
type Ob p :: k -> Constraint
+type Functor :: (j -> k) -> Constraint
class (Category (Dom f), Category (Cod f)) => Functor (f :: j -> k) where
type Dom f :: Cat j
type Cod f :: Cat k