X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2Ftests%2Fderiving%2Fdrv002.hs;fp=ghc%2Fcompiler%2Ftests%2Fderiving%2Fdrv002.hs;h=15eb2d9ecc01f3e305c61383e2108d1a4c385534;hb=216bfb01a138932092eab3076c85648f5eee99b3;hp=e8855f2600df6b9d152d689d7d67267ccc5cc3e8;hpb=5eb1c77c795f92ed0f4c8023847e9d4be1a4fd0d;p=ghc-hetmet.git diff --git a/ghc/compiler/tests/deriving/drv002.hs b/ghc/compiler/tests/deriving/drv002.hs index e8855f2..15eb2d9 100644 --- a/ghc/compiler/tests/deriving/drv002.hs +++ b/ghc/compiler/tests/deriving/drv002.hs @@ -1,11 +1,14 @@ +module ShouldSucceed where + data Z a b = C1 (T a) | C2 (Z [a] [b]) - deriving Text + deriving (Show, Read) data T a = E1 -instance Eq a => Text (T a) where +instance Eq a => Show (T a) where showsPrec = error "show" +instance Eq a => Read (T a) where readsPrec = error "read"