summaryrefslogtreecommitdiff
path: root/testsuite/tests/deriving/should_run/drvrun018.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/deriving/should_run/drvrun018.hs')
-rw-r--r--testsuite/tests/deriving/should_run/drvrun018.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/deriving/should_run/drvrun018.hs b/testsuite/tests/deriving/should_run/drvrun018.hs
new file mode 100644
index 0000000000..a0b9f24362
--- /dev/null
+++ b/testsuite/tests/deriving/should_run/drvrun018.hs
@@ -0,0 +1,9 @@
+
+-- Test Show on unboxed types
+
+module Main where
+
+data Foo = Int `MkFoo` Int deriving( Read, Show )
+
+main = do { print (MkFoo 4 5)
+ ; print (read "3 `MkFoo` 5" :: Foo) }