summaryrefslogtreecommitdiff
path: root/testsuite/tests/deriving/should_compile/T3012.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/deriving/should_compile/T3012.hs')
-rw-r--r--testsuite/tests/deriving/should_compile/T3012.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/deriving/should_compile/T3012.hs b/testsuite/tests/deriving/should_compile/T3012.hs
new file mode 100644
index 0000000000..44b1d64a9c
--- /dev/null
+++ b/testsuite/tests/deriving/should_compile/T3012.hs
@@ -0,0 +1,10 @@
+{-# LANGUAGE GADTs, StandaloneDeriving #-}
+
+module T3012 where
+
+data T a where
+ Foo :: T Int
+ Bar :: T Bool
+
+deriving instance Show (T a)
+