[commit: ghc] ghc-7.8: Test Trac #8893 (11d3f6b)
git at git.haskell.org
git at git.haskell.org
Sun Mar 23 20:37:56 UTC 2014
Repository : ssh://git@git.haskell.org/ghc
On branch : ghc-7.8
Link : http://ghc.haskell.org/trac/ghc/changeset/11d3f6b9868affa17f023c84f71e6f13642fcf91/ghc
>---------------------------------------------------------------
commit 11d3f6b9868affa17f023c84f71e6f13642fcf91
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date: Sun Mar 23 18:44:43 2014 +0000
Test Trac #8893
(cherry picked from commit 7973bfb87fdbe6e980e64ed5d7b2a90a469effd4)
>---------------------------------------------------------------
11d3f6b9868affa17f023c84f71e6f13642fcf91
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 257a9b2..b649ff6 100644
--- a/testsuite/tests/deriving/should_compile/all.T
+++ b/testsuite/tests/deriving/should_compile/all.T
@@ -45,3 +45,4 @@ test('T8138', reqlib('primitive'), compile, ['-O2'])
test('T8631', normal, compile, [''])
test('T8758', extra_clean(['T8758a.o', 'T8758a.hi']), multimod_compile, ['T8758a', '-v0'])
test('T8865', normal, compile, [''])
+test('T8893', normal, compile, [''])
More information about the ghc-commits
mailing list