summaryrefslogtreecommitdiff
path: root/testsuite/tests/deriving/should_fail/T21302.hs
blob: 16e7cf320d27d2254a36337224adf28bfa23a6a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
{-# LANGUAGE UndecidableInstances, TypeFamilies #-}

module T21302 where

data BoxAssocDouble = BoxAssocDouble (BoxAssoc Int)
  deriving (Eq)

type family Assoc a

data BoxAssoc a = BoxAssoc (Assoc a)

deriving instance c Eq a => Eq (BoxAssoc a)