diff options
author | Jose Pedro Magalhaes <jpm@cs.ox.ac.uk> | 2012-06-21 12:13:33 +0100 |
---|---|---|
committer | Jose Pedro Magalhaes <jpm@cs.ox.ac.uk> | 2012-06-21 12:13:49 +0100 |
commit | 686628d242e497a746d6272247445def6b6a2485 (patch) | |
tree | 772364e12390647df0a2bfae0b863c8daea60ef8 /testsuite/tests/generics/GenCannotDoRep1_8.hs | |
parent | 9d3bf7df0d059cb4b5273edd73a0eb9bb0a856eb (diff) | |
download | haskell-686628d242e497a746d6272247445def6b6a2485.tar.gz |
Add tests for deriving Generic1
Most of these tests were written by Nicolas Frisby.
Diffstat (limited to 'testsuite/tests/generics/GenCannotDoRep1_8.hs')
-rw-r--r-- | testsuite/tests/generics/GenCannotDoRep1_8.hs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/generics/GenCannotDoRep1_8.hs b/testsuite/tests/generics/GenCannotDoRep1_8.hs new file mode 100644 index 0000000000..da31a6d3c5 --- /dev/null +++ b/testsuite/tests/generics/GenCannotDoRep1_8.hs @@ -0,0 +1,12 @@ +{-# LANGUAGE DeriveGeneric, TypeFamilies #-} + +module GenCannotDoRep1_8 where + +import GHC.Generics + +data B a = B (a -> Int) + +type family TF (a :: *) :: * + +-- We do not support type families +data T a = T (TF a) deriving Generic1 |