summaryrefslogtreecommitdiff
path: root/testsuite/tests/indexed-types/should_compile/Simple7.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/indexed-types/should_compile/Simple7.hs')
-rw-r--r--testsuite/tests/indexed-types/should_compile/Simple7.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/indexed-types/should_compile/Simple7.hs b/testsuite/tests/indexed-types/should_compile/Simple7.hs
new file mode 100644
index 0000000000..61ba22117f
--- /dev/null
+++ b/testsuite/tests/indexed-types/should_compile/Simple7.hs
@@ -0,0 +1,10 @@
+{-# LANGUAGE TypeFamilies #-}
+
+module ShouldCompile where
+
+class C1 a where
+ data S1 a :: *
+
+-- instance of data families can be data or newtypes
+instance C1 Char where
+ newtype S1 Char = S1Char ()