projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 1996-07-26 20:58:52 by partain]
[ghc-hetmet.git]
/
ghc
/
compiler
/
tests
/
deriving
/
drv001.hs
diff --git
a/ghc/compiler/tests/deriving/drv001.hs
b/ghc/compiler/tests/deriving/drv001.hs
index
707a05d
..
ffe8196
100644
(file)
--- a/
ghc/compiler/tests/deriving/drv001.hs
+++ b/
ghc/compiler/tests/deriving/drv001.hs
@@
-1,19
+1,21
@@
--!!! canonical weird example for "deriving"
--!!! canonical weird example for "deriving"
+module ShouldSucceed where
data X a b
= C1 (T a)
| C2 (Y b)
| C3 (X b a)
data X a b
= C1 (T a)
| C2 (Y b)
| C3 (X b a)
- deriving Text
+ deriving (Read, Show)
data Y b
= D1
| D2 (X Int b)
data Y b
= D1
| D2 (X Int b)
- deriving Text
+ deriving (Read, Show)
data T a
= E1
data T a
= E1
-instance Eq a => Text (T a) where
+instance Eq a => Show (T a) where
showsPrec = error "show"
showsPrec = error "show"
+instance Eq a => Read (T a) where
readsPrec = error "read"
readsPrec = error "read"