diff options
Diffstat (limited to 'ghc/compiler/tests/deriving/drv002.hs')
-rw-r--r-- | ghc/compiler/tests/deriving/drv002.hs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ghc/compiler/tests/deriving/drv002.hs b/ghc/compiler/tests/deriving/drv002.hs new file mode 100644 index 0000000000..e8855f2600 --- /dev/null +++ b/ghc/compiler/tests/deriving/drv002.hs @@ -0,0 +1,11 @@ +data Z a b + = C1 (T a) + | C2 (Z [a] [b]) + deriving Text + +data T a + = E1 + +instance Eq a => Text (T a) where + showsPrec = error "show" + readsPrec = error "read" |