summaryrefslogtreecommitdiff
path: root/testsuite/tests/indexed-types/should_fail/T13784.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/indexed-types/should_fail/T13784.hs')
-rw-r--r--testsuite/tests/indexed-types/should_fail/T13784.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/testsuite/tests/indexed-types/should_fail/T13784.hs b/testsuite/tests/indexed-types/should_fail/T13784.hs
index 36c72b98af..48982769a2 100644
--- a/testsuite/tests/indexed-types/should_fail/T13784.hs
+++ b/testsuite/tests/indexed-types/should_fail/T13784.hs
@@ -4,9 +4,10 @@
module T13784 where
+import Data.Kind (Type)
import Data.Monoid ((<>))
-data Product :: [*] -> * where
+data Product :: [Type] -> Type where
(:*) :: a -> Product as -> Product (a : as)
Unit :: Product '[]
infixr 5 :*
@@ -18,7 +19,7 @@ instance (Show a, Show (Product as)) => Show (Product (a : as)) where
show (a :* as) = show a <> " :* " <> show as
class Divideable a as where
- type Divide a as :: [*]
+ type Divide a as :: [Type]
divide :: Product as -> (a, Product (Divide a as))
instance Divideable a (a : as) where