summaryrefslogtreecommitdiff
path: root/testsuite/tests/deriving/should_compile/T2378.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/deriving/should_compile/T2378.hs')
-rw-r--r--testsuite/tests/deriving/should_compile/T2378.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/deriving/should_compile/T2378.hs b/testsuite/tests/deriving/should_compile/T2378.hs
new file mode 100644
index 0000000000..e3118cb863
--- /dev/null
+++ b/testsuite/tests/deriving/should_compile/T2378.hs
@@ -0,0 +1,10 @@
+{-# LANGUAGE StandaloneDeriving, DeriveDataTypeable #-}
+module Foo( T ) where
+
+-- Trac 2378
+
+import Data.Data
+
+newtype T f = MkT Int
+
+deriving instance Typeable1 T