summaryrefslogtreecommitdiff
path: root/testsuite/tests/generics
diff options
context:
space:
mode:
authorJose Pedro Magalhaes <jpm@cs.ox.ac.uk>2012-06-21 12:41:59 +0100
committerJose Pedro Magalhaes <jpm@cs.ox.ac.uk>2012-06-21 12:41:59 +0100
commit7d8b524178e759f3ef7edf5e2ffb6e5f0a35b500 (patch)
treeb0f71badc11d48281782c45b541fa5e3204c16f0 /testsuite/tests/generics
parent686628d242e497a746d6272247445def6b6a2485 (diff)
downloadhaskell-7d8b524178e759f3ef7edf5e2ffb6e5f0a35b500.tar.gz
Add test for #5936
Diffstat (limited to 'testsuite/tests/generics')
-rw-r--r--testsuite/tests/generics/GenCanDoRep0.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/testsuite/tests/generics/GenCanDoRep0.hs b/testsuite/tests/generics/GenCanDoRep0.hs
index a86416b052..8a0b4e07d6 100644
--- a/testsuite/tests/generics/GenCanDoRep0.hs
+++ b/testsuite/tests/generics/GenCanDoRep0.hs
@@ -1,5 +1,6 @@
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE TypeOperators #-}
+{-# LANGUAGE TypeFamilies #-}
module CanDoRep0 where
@@ -21,3 +22,6 @@ data D a = D0 | D1 { d11 :: a, d12 :: (D a) }
data (:*:) a b = a :*: b
deriving Generic
+
+data family F a
+data instance F Int = FInt deriving Generic