[commit: ghc] master: Test Trac #8893 (7973bfb)

git at git.haskell.org git at git.haskell.org
Sun Mar 23 18:49:48 UTC 2014


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

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

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

commit 7973bfb87fdbe6e980e64ed5d7b2a90a469effd4
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Sun Mar 23 18:44:43 2014 +0000

    Test Trac #8893


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

7973bfb87fdbe6e980e64ed5d7b2a90a469effd4
 testsuite/tests/deriving/should_compile/T8893.hs |   11 +++++++++++
 testsuite/tests/deriving/should_compile/all.T    |    1 +
 2 files changed, 12 insertions(+)

diff --git a/testsuite/tests/deriving/should_compile/T8893.hs b/testsuite/tests/deriving/should_compile/T8893.hs
new file mode 100644
index 0000000..2ebcc94
--- /dev/null
+++ b/testsuite/tests/deriving/should_compile/T8893.hs
@@ -0,0 +1,11 @@
+{-# OPTIONS_GHC -Wall #-}
+{-# Language DeriveFunctor #-}
+{-# Language PolyKinds #-}
+
+module T8893 where
+
+data V a = V [a] deriving Functor
+
+data C x a = C (V (P x a)) deriving Functor
+
+data P x a = P (x a) deriving Functor
diff --git a/testsuite/tests/deriving/should_compile/all.T b/testsuite/tests/deriving/should_compile/all.T
index cc4115c..a0e70eb 100644
--- a/testsuite/tests/deriving/should_compile/all.T
+++ b/testsuite/tests/deriving/should_compile/all.T
@@ -46,3 +46,4 @@ test('T8631', normal, compile, [''])
 test('T8758', extra_clean(['T8758a.o', 'T8758a.hi']), multimod_compile, ['T8758a', '-v0'])
 test('T8678', normal, compile, [''])
 test('T8865', normal, compile, [''])
+test('T8893', normal, compile, [''])



More information about the ghc-commits mailing list