diff options
author | Simon Peyton Jones <simonpj@microsoft.com> | 2014-11-27 15:44:10 +0000 |
---|---|---|
committer | Simon Peyton Jones <simonpj@microsoft.com> | 2014-11-27 15:44:10 +0000 |
commit | 01f03cb30426fad1b848051fa142c04c8816a80c (patch) | |
tree | 34564d11f0def9aea208aea4b4f769d0a2a12527 /testsuite/tests/deriving/should_run/T9830.hs | |
parent | b61091d3b042305ce21bb00b28a81f903b522394 (diff) | |
download | haskell-01f03cb30426fad1b848051fa142c04c8816a80c.tar.gz |
Get the right fixity-env in standalone deriving (Trac #9830)
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") "" |