summaryrefslogtreecommitdiff
path: root/testsuite/tests/deriving/should_run/drvrun004.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/deriving/should_run/drvrun004.hs')
-rw-r--r--testsuite/tests/deriving/should_run/drvrun004.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/deriving/should_run/drvrun004.hs b/testsuite/tests/deriving/should_run/drvrun004.hs
new file mode 100644
index 0000000000..f530803835
--- /dev/null
+++ b/testsuite/tests/deriving/should_run/drvrun004.hs
@@ -0,0 +1,10 @@
+module Main where
+
+data Hash = Hash{ (#) :: Int }
+ deriving (Show, Read)
+
+main =
+ do print s
+ print (read s :: Hash)
+ where
+ s = show (Hash 3)