diff options
author | Jose Pedro Magalhaes <jpm@cs.uu.nl> | 2011-05-02 13:20:05 +0200 |
---|---|---|
committer | Jose Pedro Magalhaes <jpm@cs.uu.nl> | 2011-05-02 13:20:05 +0200 |
commit | 69cc9a593f13f6739b090096152ebe9f46de061c (patch) | |
tree | 0a9d4ce2691b495a3fcb651daed6b42997039263 /testsuite/tests/ghc-regress/generics/cannotDoRep2.hs | |
parent | a07c8a4f3fd020c533e988c1b5c9d64357432a12 (diff) | |
download | haskell-69cc9a593f13f6739b090096152ebe9f46de061c.tar.gz |
Add some tests for the new generic deriving mechanism.
Diffstat (limited to 'testsuite/tests/ghc-regress/generics/cannotDoRep2.hs')
-rw-r--r-- | testsuite/tests/ghc-regress/generics/cannotDoRep2.hs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/ghc-regress/generics/cannotDoRep2.hs b/testsuite/tests/ghc-regress/generics/cannotDoRep2.hs new file mode 100644 index 0000000000..05161ab302 --- /dev/null +++ b/testsuite/tests/ghc-regress/generics/cannotDoRep2.hs @@ -0,0 +1,13 @@ +{-# LANGUAGE DeriveRepresentable #-} +{-# LANGUAGE StandaloneDeriving #-} +{-# LANGUAGE GADTs #-} + +module ShouldFail2 where + +import GHC.Generics + +-- We do not support GADTs +data Term a where + Int :: Term Int + +deriving instance Representable0 (Term a) |