Add missing test file T7269
authorSimon Peyton Jones <simonpj@microsoft.com>
Mon, 26 May 2014 16:03:23 +0000 (17:03 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Mon, 26 May 2014 16:03:23 +0000 (17:03 +0100)
testsuite/tests/deriving/should_compile/T7269.hs [new file with mode: 0644]

diff --git a/testsuite/tests/deriving/should_compile/T7269.hs b/testsuite/tests/deriving/should_compile/T7269.hs
new file mode 100644 (file)
index 0000000..2d7331b
--- /dev/null
@@ -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