diff options
Diffstat (limited to 'testsuite/tests/indexed-types/should_compile/DataFamDeriv.hs')
-rw-r--r-- | testsuite/tests/indexed-types/should_compile/DataFamDeriv.hs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/indexed-types/should_compile/DataFamDeriv.hs b/testsuite/tests/indexed-types/should_compile/DataFamDeriv.hs new file mode 100644 index 0000000000..3800b51a3f --- /dev/null +++ b/testsuite/tests/indexed-types/should_compile/DataFamDeriv.hs @@ -0,0 +1,11 @@ +{-# LANGUAGE TypeFamilies #-} +module DataFamDeriv where + +data family Foo a +data Bar = Bar +data instance Foo Bar + = Bar1 | Bar2 | Bar3 | Bar4 | Bar5 | Bar6 | Bar7 | Bar8 | Bar9 + deriving Eq + + + |