[commit: ghc] master: Test Trac #8963 (cc3ccf9)

git at git.haskell.org git at git.haskell.org
Tue Apr 8 16:38:24 UTC 2014


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

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

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

commit cc3ccf9f47c7f4684cdd2b08d0e2acf50b69bc18
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Tue Apr 8 16:28:56 2014 +0100

    Test Trac #8963


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

cc3ccf9f47c7f4684cdd2b08d0e2acf50b69bc18
 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 c8ee7fa..224b99e 100644
--- a/testsuite/tests/deriving/should_compile/all.T
+++ b/testsuite/tests/deriving/should_compile/all.T
@@ -48,3 +48,4 @@ test('T8678', normal, compile, [''])
 test('T8865', normal, compile, [''])
 test('T8893', normal, compile, [''])
 test('T8950', expect_broken(8950), compile, [''])
+test('T8963', normal, compile, [''])



More information about the ghc-commits mailing list