diff options
Diffstat (limited to 'testsuite/tests/deriving/should_compile/drv012.hs')
-rw-r--r-- | testsuite/tests/deriving/should_compile/drv012.hs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/deriving/should_compile/drv012.hs b/testsuite/tests/deriving/should_compile/drv012.hs new file mode 100644 index 0000000000..eb8f3847cd --- /dev/null +++ b/testsuite/tests/deriving/should_compile/drv012.hs @@ -0,0 +1,10 @@ +{-# LANGUAGE GADTs #-} + +-- !!! deriving for GADTs which declare Haskell98 data types. +-- bug reported as http://hackage.haskell.org/trac/ghc/ticket/902 +module ShouldSucceed where + +data Maybe1 a where { + Nothing1 :: Maybe1 a ; + Just1 :: a -> Maybe1 a + } deriving (Eq,Ord) |