summaryrefslogtreecommitdiff
path: root/testsuite/tests/deriving/should_fail/T2851.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/deriving/should_fail/T2851.hs')
-rw-r--r--testsuite/tests/deriving/should_fail/T2851.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/deriving/should_fail/T2851.hs b/testsuite/tests/deriving/should_fail/T2851.hs
new file mode 100644
index 0000000000..bc7239af0a
--- /dev/null
+++ b/testsuite/tests/deriving/should_fail/T2851.hs
@@ -0,0 +1,9 @@
+{-# LANGUAGE TypeFamilies #-}
+-- Test Trac #2851
+
+module T2851 where
+
+type family F a :: *
+
+data D a = D (F a)
+ deriving (Show)