[commit: ghc] master: Add test case for #8950. (f772344)

git at git.haskell.org git at git.haskell.org
Sun Apr 6 00:04:13 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/f7723444fe70c37322a0ab21db21b3b7ac699f64/ghc

>---------------------------------------------------------------

commit f7723444fe70c37322a0ab21db21b3b7ac699f64
Author: Richard Eisenberg <eir at cis.upenn.edu>
Date:   Sat Apr 5 13:58:17 2014 -0400

    Add test case for #8950.


>---------------------------------------------------------------

f7723444fe70c37322a0ab21db21b3b7ac699f64
 testsuite/tests/deriving/should_compile/T8950.hs |   18 ++++++++++++++++++
 testsuite/tests/deriving/should_compile/all.T    |    1 +
 2 files changed, 19 insertions(+)

diff --git a/testsuite/tests/deriving/should_compile/T8950.hs b/testsuite/tests/deriving/should_compile/T8950.hs
new file mode 100644
index 0000000..b913b27
--- /dev/null
+++ b/testsuite/tests/deriving/should_compile/T8950.hs
@@ -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)
diff --git a/testsuite/tests/deriving/should_compile/all.T b/testsuite/tests/deriving/should_compile/all.T
index a0e70eb..c8ee7fa 100644
--- a/testsuite/tests/deriving/should_compile/all.T
+++ b/testsuite/tests/deriving/should_compile/all.T
@@ -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, [''])



More information about the ghc-commits mailing list