From: sof Date: Wed, 3 Sep 1997 23:35:03 +0000 (+0000) Subject: [project @ 1997-09-03 23:34:59 by sof] X-Git-Tag: Approximately_1000_patches_recorded~64 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=b8fc8d117d2246e5e35521917ea65f1f9f35abf4 [project @ 1997-09-03 23:34:59 by sof] new deriving test cases --- diff --git a/ghc/tests/deriving/should_compile/drv008.hs b/ghc/tests/deriving/should_compile/drv008.hs new file mode 100644 index 0000000..da1391d --- /dev/null +++ b/ghc/tests/deriving/should_compile/drv008.hs @@ -0,0 +1,5 @@ +--!!! deriving Ix on d. type with nullary constructors +module ShouldSucceed where + +data AD = A | B | C | D deriving (Show, Ord, Eq, Ix) + diff --git a/ghc/tests/deriving/should_compile/drv009.hs b/ghc/tests/deriving/should_compile/drv009.hs new file mode 100644 index 0000000..e0ff399 --- /dev/null +++ b/ghc/tests/deriving/should_compile/drv009.hs @@ -0,0 +1,4 @@ +--!!! deriving Ix on d. type with one constructor +module ShouldSucceed where + +data Pair a b = Pair a b deriving (Show, Ord, Eq, Ix) diff --git a/ghc/tests/deriving/should_compile/drv010.hs b/ghc/tests/deriving/should_compile/drv010.hs new file mode 100644 index 0000000..e681450 --- /dev/null +++ b/ghc/tests/deriving/should_compile/drv010.hs @@ -0,0 +1,4 @@ +--!!! deriving Enum on d. type with nullary constructors +module ShouldSucceed where + +data AD = A | B | C | D deriving (Enum)