summaryrefslogtreecommitdiff
path: root/testsuite/tests/deriving/should_compile/T8963.hs
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2014-04-08 16:28:56 +0100
committerSimon Peyton Jones <simonpj@microsoft.com>2014-04-08 17:37:58 +0100
commitcc3ccf9f47c7f4684cdd2b08d0e2acf50b69bc18 (patch)
tree17efe6204db8e1c348aafb17a70ab8b71f1ed153 /testsuite/tests/deriving/should_compile/T8963.hs
parent2c516c4f1908f4c332df3c08c44a354bd2d832b3 (diff)
downloadhaskell-cc3ccf9f47c7f4684cdd2b08d0e2acf50b69bc18.tar.gz
Test Trac #8963
Diffstat (limited to 'testsuite/tests/deriving/should_compile/T8963.hs')
-rw-r--r--testsuite/tests/deriving/should_compile/T8963.hs9
1 files changed, 9 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)