summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci/prog002/A2.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/ghci/prog002/A2.hs')
-rw-r--r--testsuite/tests/ghci/prog002/A2.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/tests/ghci/prog002/A2.hs b/testsuite/tests/ghci/prog002/A2.hs
new file mode 100644
index 0000000000..6dc493aaa2
--- /dev/null
+++ b/testsuite/tests/ghci/prog002/A2.hs
@@ -0,0 +1,6 @@
+module A where
+
+data T = A Int | B Float deriving Eq
+
+f :: Int -> Int
+f x = x + 3