summaryrefslogtreecommitdiff
path: root/testsuite/tests/deriving/should_compile/T11148.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/deriving/should_compile/T11148.hs')
-rw-r--r--testsuite/tests/deriving/should_compile/T11148.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/deriving/should_compile/T11148.hs b/testsuite/tests/deriving/should_compile/T11148.hs
new file mode 100644
index 0000000000..5e505beb31
--- /dev/null
+++ b/testsuite/tests/deriving/should_compile/T11148.hs
@@ -0,0 +1,11 @@
+{-# LANGUAGE TypeFamilies #-}
+{-# LANGUAGE DeriveFunctor #-}
+{-# LANGUAGE FlexibleInstances #-}
+
+module T11148 where
+
+data family G a b c d
+data instance G Int b Float d = G deriving Functor
+
+data family H a b c d
+data instance H [b] b d c = H deriving Functor