From 686628d242e497a746d6272247445def6b6a2485 Mon Sep 17 00:00:00 2001 From: Jose Pedro Magalhaes Date: Thu, 21 Jun 2012 12:13:33 +0100 Subject: Add tests for deriving Generic1 Most of these tests were written by Nicolas Frisby. --- testsuite/tests/generics/GenCannotDoRep1_1.hs | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 testsuite/tests/generics/GenCannotDoRep1_1.hs (limited to 'testsuite/tests/generics/GenCannotDoRep1_1.hs') diff --git a/testsuite/tests/generics/GenCannotDoRep1_1.hs b/testsuite/tests/generics/GenCannotDoRep1_1.hs new file mode 100644 index 0000000000..9ac8fc6cd1 --- /dev/null +++ b/testsuite/tests/generics/GenCannotDoRep1_1.hs @@ -0,0 +1,8 @@ +{-# LANGUAGE DeriveGeneric, DatatypeContexts #-} + +module CannotDoRep1_1 where + +import GHC.Generics + +-- We do not support datatypes with context +data (Show a) => Context a = Context a deriving Generic1 -- cgit v1.2.1