diff options
Diffstat (limited to 'testsuite/tests/deriving/should_fail/T4528.hs')
-rw-r--r-- | testsuite/tests/deriving/should_fail/T4528.hs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/deriving/should_fail/T4528.hs b/testsuite/tests/deriving/should_fail/T4528.hs new file mode 100644 index 0000000000..23a8510d98 --- /dev/null +++ b/testsuite/tests/deriving/should_fail/T4528.hs @@ -0,0 +1,11 @@ +{-# LANGUAGE GADTs, StandaloneDeriving #-} + +module T4528 where + +data Foo a where + A, B :: Foo Int + C :: Foo Bool + +deriving instance Enum (Foo a) +deriving instance Bounded (Foo a) + |