[commit: ghc] ghc-7.8: Test Trac #8963 (3fb1a08)
git at git.haskell.org
git at git.haskell.org
Tue Apr 29 21:10:17 UTC 2014
Repository : ssh://git@git.haskell.org/ghc
On branch : ghc-7.8
Link : http://ghc.haskell.org/trac/ghc/changeset/3fb1a0887d18cdddd6ff1691e80f3143fd0eedba/ghc
>---------------------------------------------------------------
commit 3fb1a0887d18cdddd6ff1691e80f3143fd0eedba
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date: Tue Apr 8 16:28:56 2014 +0100
Test Trac #8963
(cherry picked from commit cc3ccf9f47c7f4684cdd2b08d0e2acf50b69bc18)
Conflicts:
testsuite/tests/deriving/should_compile/all.T
>---------------------------------------------------------------
3fb1a0887d18cdddd6ff1691e80f3143fd0eedba
testsuite/tests/deriving/should_compile/T8963.hs | 9 +++++++++
testsuite/tests/deriving/should_compile/all.T | 1 +
2 files changed, 10 insertions(+)
diff --git a/testsuite/tests/deriving/should_compile/T8963.hs b/testsuite/tests/deriving/should_compile/T8963.hs
new file mode 100644
index 0000000..78dcf46
--- /dev/null
+++ b/testsuite/tests/deriving/should_compile/T8963.hs
@@ -0,0 +1,9 @@
+{-# LANGUAGE TypeFamilies, GeneralizedNewtypeDeriving #-}
+
+module T8963 where
+
+class C c where
+ data F c r
+
+instance C Int where
+ newtype F Int r = F (IO r) deriving (Functor)
diff --git a/testsuite/tests/deriving/should_compile/all.T b/testsuite/tests/deriving/should_compile/all.T
index b649ff6..f8ab42e 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('T8865', normal, compile, [''])
test('T8893', normal, compile, [''])
+test('T8963', normal, compile, [''])
More information about the ghc-commits
mailing list