diff options
Diffstat (limited to 'testsuite/tests/deriving/should_compile/drv021.hs')
-rw-r--r-- | testsuite/tests/deriving/should_compile/drv021.hs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/tests/deriving/should_compile/drv021.hs b/testsuite/tests/deriving/should_compile/drv021.hs new file mode 100644 index 0000000000..c9800508de --- /dev/null +++ b/testsuite/tests/deriving/should_compile/drv021.hs @@ -0,0 +1,16 @@ +{-# OPTIONS_GHC -XDeriveDataTypeable -XStandaloneDeriving #-} + +-- See Trac #1825 +-- Test stand-alone deriving for Typeable +-- Horridly, one needs to define instance for Typeable1 etc + +module ShouldCompile where + +import Data.Typeable + +data T1 a = T1 a +data T2 a b = T2 a b + +deriving instance Typeable1 T1 +deriving instance Typeable2 T2 + |