summaryrefslogtreecommitdiff
path: root/testsuite/tests/deriving/should_compile
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2014-05-26 17:03:23 +0100
committerSimon Peyton Jones <simonpj@microsoft.com>2014-05-26 17:03:23 +0100
commitdb869e7521387db0513d1dc2b49641ce32688cdd (patch)
tree1a2fa95913e236f5cbed3e131ef807b4843f4829 /testsuite/tests/deriving/should_compile
parentb1436f55da2b0e005ac09be6651a2c4d934027ec (diff)
downloadhaskell-db869e7521387db0513d1dc2b49641ce32688cdd.tar.gz
Add missing test file T7269
Diffstat (limited to 'testsuite/tests/deriving/should_compile')
-rw-r--r--testsuite/tests/deriving/should_compile/T7269.hs13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/deriving/should_compile/T7269.hs b/testsuite/tests/deriving/should_compile/T7269.hs
new file mode 100644
index 0000000000..2d7331bebb
--- /dev/null
+++ b/testsuite/tests/deriving/should_compile/T7269.hs
@@ -0,0 +1,13 @@
+{-# LANGUAGE PolyKinds #-}
+{-# LANGUAGE MultiParamTypeClasses, StandaloneDeriving, GeneralizedNewtypeDeriving #-}
+
+module T7269 where
+
+class C (a :: k)
+
+instance C Int
+
+newtype MyInt = MyInt Int deriving C
+
+newtype YourInt = YourInt Int
+deriving instance C YourInt