diff options
author | Simon Peyton Jones <simonpj@microsoft.com> | 2014-04-08 16:28:56 +0100 |
---|---|---|
committer | Simon Peyton Jones <simonpj@microsoft.com> | 2014-04-08 17:37:58 +0100 |
commit | cc3ccf9f47c7f4684cdd2b08d0e2acf50b69bc18 (patch) | |
tree | 17efe6204db8e1c348aafb17a70ab8b71f1ed153 | |
parent | 2c516c4f1908f4c332df3c08c44a354bd2d832b3 (diff) | |
download | haskell-cc3ccf9f47c7f4684cdd2b08d0e2acf50b69bc18.tar.gz |
Test Trac #8963
-rw-r--r-- | testsuite/tests/deriving/should_compile/T8963.hs | 9 | ||||
-rw-r--r-- | testsuite/tests/deriving/should_compile/all.T | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/deriving/should_compile/T8963.hs b/testsuite/tests/deriving/should_compile/T8963.hs new file mode 100644 index 0000000000..78dcf469e8 --- /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 c8ee7faa3c..224b99ef00 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, ['']) |