summaryrefslogtreecommitdiff
path: root/testsuite/tests/deriving/should_compile/drv002.hs
blob: 15eb2d9ecc01f3e305c61383e2108d1a4c385534 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module ShouldSucceed where

data Z a b
  = C1 (T a)
  | C2 (Z [a] [b])
  deriving (Show, Read)

data T a
  = E1

instance Eq a => Show (T a) where
    showsPrec = error "show"
instance Eq a => Read (T a) where
    readsPrec = error "read"