summaryrefslogtreecommitdiff
path: root/testsuite/tests/deriving/should_compile/T8128.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/deriving/should_compile/T8128.hs')
-rw-r--r--testsuite/tests/deriving/should_compile/T8128.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/deriving/should_compile/T8128.hs b/testsuite/tests/deriving/should_compile/T8128.hs
new file mode 100644
index 0000000000..624702e2a8
--- /dev/null
+++ b/testsuite/tests/deriving/should_compile/T8128.hs
@@ -0,0 +1,9 @@
+{-# LANGUAGE StandaloneDeriving, GADTs, FlexibleInstances #-}
+
+module T8128 where
+
+data T a where
+ MkT1 :: T Int
+ MkT2 :: Bool -> T Bool
+
+deriving instance Show (T Int)