diff options
Diffstat (limited to 'testsuite/tests/deriving/should_compile/drv014.hs')
-rw-r--r-- | testsuite/tests/deriving/should_compile/drv014.hs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/deriving/should_compile/drv014.hs b/testsuite/tests/deriving/should_compile/drv014.hs new file mode 100644 index 0000000000..12e2a15b3f --- /dev/null +++ b/testsuite/tests/deriving/should_compile/drv014.hs @@ -0,0 +1,11 @@ +{-# LANGUAGE StandaloneDeriving, GeneralizedNewtypeDeriving #-} + +module ShouldCompile where + +data T a = T1 a | T2 +newtype N = MkN Int + +deriving instance Eq a => Eq (T a) +deriving instance Num N +deriving instance Eq N +deriving instance Show N |