From 11d3f6b9868affa17f023c84f71e6f13642fcf91 Mon Sep 17 00:00:00 2001
From: Simon Peyton Jones <simonpj@microsoft.com>
Date: Sun, 23 Mar 2014 18:44:43 +0000
Subject: [PATCH] Test Trac #8893

(cherry picked from commit 7973bfb87fdbe6e980e64ed5d7b2a90a469effd4)
---
 testsuite/tests/deriving/should_compile/T8893.hs | 11 +++++++++++
 testsuite/tests/deriving/should_compile/all.T    |  1 +
 2 files changed, 12 insertions(+)
 create mode 100644 testsuite/tests/deriving/should_compile/T8893.hs

diff --git a/testsuite/tests/deriving/should_compile/T8893.hs b/testsuite/tests/deriving/should_compile/T8893.hs
new file mode 100644
index 000000000000..2ebcc94624a6
--- /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 257a9b215770..b649ff6ba5f7 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, [''])
-- 
GitLab