Add test case for #8950.
authorRichard Eisenberg <eir@cis.upenn.edu>
Sat, 5 Apr 2014 17:58:17 +0000 (13:58 -0400)
committerRichard Eisenberg <eir@cis.upenn.edu>
Sat, 5 Apr 2014 21:25:45 +0000 (17:25 -0400)
testsuite/tests/deriving/should_compile/T8950.hs [new file with mode: 0644]
testsuite/tests/deriving/should_compile/all.T

diff --git a/testsuite/tests/deriving/should_compile/T8950.hs b/testsuite/tests/deriving/should_compile/T8950.hs
new file mode 100644 (file)
index 0000000..b913b27
--- /dev/null
@@ -0,0 +1,18 @@
+{-# LANGUAGE AutoDeriveTypeable, DataKinds, StandaloneDeriving #-}
+
+module T8950 where
+
+import Data.Typeable
+
+data Foo = Bar
+  deriving (Eq)
+
+data Baz = Quux
+
+deriving instance Typeable Baz  -- shouldn't error
+deriving instance Typeable Quux
+
+rep1 = typeRep (Proxy :: Proxy Bool)
+rep2 = typeRep (Proxy :: Proxy 'True)
+rep3 = typeRep (Proxy :: Proxy Foo)
+rep4 = typeRep (Proxy :: Proxy Bar)
index a0e70eb..c8ee7fa 100644 (file)
@@ -47,3 +47,4 @@ test('T8758', extra_clean(['T8758a.o', 'T8758a.hi']), multimod_compile, ['T8758a
 test('T8678', normal, compile, [''])
 test('T8865', normal, compile, [''])
 test('T8893', normal, compile, [''])
+test('T8950', expect_broken(8950), compile, [''])