[project @ 1996-07-26 20:58:52 by partain]
[ghc-hetmet.git] / ghc / compiler / tests / deriving / drv002.hs
index e8855f2..15eb2d9 100644 (file)
@@ -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"