summaryrefslogtreecommitdiff
path: root/testsuite/tests/indexed-types/should_compile/Simple1.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/indexed-types/should_compile/Simple1.hs')
-rw-r--r--testsuite/tests/indexed-types/should_compile/Simple1.hs13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/indexed-types/should_compile/Simple1.hs b/testsuite/tests/indexed-types/should_compile/Simple1.hs
new file mode 100644
index 0000000000..e442042bb1
--- /dev/null
+++ b/testsuite/tests/indexed-types/should_compile/Simple1.hs
@@ -0,0 +1,13 @@
+{-# LANGUAGE TypeFamilies #-}
+
+module ShouldCompile where
+
+class C a where
+ data Sd a :: *
+ data Sn a :: *
+ type St a :: *
+
+instance C Int where
+ data Sd Int = SdC Char
+ newtype Sn Int = SnC Char
+ type St Int = Char