diff options
Diffstat (limited to 'testsuite/tests/deriving/should_run/T9830.hs')
-rw-r--r-- | testsuite/tests/deriving/should_run/T9830.hs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/deriving/should_run/T9830.hs b/testsuite/tests/deriving/should_run/T9830.hs new file mode 100644 index 0000000000..353decc347 --- /dev/null +++ b/testsuite/tests/deriving/should_run/T9830.hs @@ -0,0 +1,13 @@ +{-# LANGUAGE StandaloneDeriving #-} +module Main where + +import T9830a + +deriving instance (Show a, Show b) => Show (ADT a b) + +main :: IO () +main = do + putStrLn $ "Prec 6: " ++ showsPrec 6 ("test" :?: "show") "" + putStrLn $ "Prec 7: " ++ showsPrec 7 ("test" :?: "show") "" + putStrLn $ "Prec 9: " ++ showsPrec 9 ("test" :?: "show") "" + putStrLn $ "Prec 10: " ++ showsPrec 10 ("test" :?: "show") "" |