diff options
author | Jose Pedro Magalhaes <jpm@cs.ox.ac.uk> | 2013-02-21 09:40:47 +0000 |
---|---|---|
committer | Jose Pedro Magalhaes <jpm@cs.ox.ac.uk> | 2013-02-21 09:43:15 +0000 |
commit | 566128cab97aa397bd07c0e9aeb0043966c67b02 (patch) | |
tree | 7bb1285ac8b4426679811db6378d75ce4c37cb3d /testsuite | |
parent | d1d45e89cfa8df13caa045e153cdf733e217884c (diff) | |
download | haskell-566128cab97aa397bd07c0e9aeb0043966c67b02.tar.gz |
Test #7710
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/tests/deriving/should_compile/T7710.hs | 21 | ||||
-rw-r--r-- | testsuite/tests/deriving/should_compile/all.T | 1 |
2 files changed, 22 insertions, 0 deletions
diff --git a/testsuite/tests/deriving/should_compile/T7710.hs b/testsuite/tests/deriving/should_compile/T7710.hs new file mode 100644 index 0000000000..5375c2c0eb --- /dev/null +++ b/testsuite/tests/deriving/should_compile/T7710.hs @@ -0,0 +1,21 @@ +{-# LANGUAGE DeriveDataTypeable #-} +{-# LANGUAGE TypeSynonymInstances #-} +{-# LANGUAGE AutoDeriveTypeable #-} +{-# LANGUAGE TypeFamilies #-} + +module T7710 where + +import Data.Typeable + + +type T = Int +type family F a +type instance F Int = Int +data family D a +data instance D Int = DInt +data instance D Float = DFloat + +test = [ typeRep ([] :: [T]) + , typeRep ([] :: [F Int]) + , typeRep (Proxy :: Proxy D) + , typeRep ([] :: [D Int]) ] diff --git a/testsuite/tests/deriving/should_compile/all.T b/testsuite/tests/deriving/should_compile/all.T index 5e9af5ee4f..b2355f6ac9 100644 --- a/testsuite/tests/deriving/should_compile/all.T +++ b/testsuite/tests/deriving/should_compile/all.T @@ -36,3 +36,4 @@ test('T1133', extra_clean(['T1133.o-boot', 'T1133.hi-boot']), run_command, ['$MAKE --no-print-directory -s T1133']) +test('T7710', normal, compile, [''])
\ No newline at end of file |