summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci/scripts/ghci053.script
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/ghci/scripts/ghci053.script')
-rw-r--r--testsuite/tests/ghci/scripts/ghci053.script10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/ghci/scripts/ghci053.script b/testsuite/tests/ghci/scripts/ghci053.script
new file mode 100644
index 0000000000..cf104b51e9
--- /dev/null
+++ b/testsuite/tests/ghci/scripts/ghci053.script
@@ -0,0 +1,10 @@
+--Testing deriving in the presence of shadowing
+data Planet = Mercury | Venus | Earth deriving Eq
+let mercury = Mercury
+Venus == Earth
+data Planet = Mercury | Venus deriving Eq
+Mercury == Mercury
+mercury == Mercury
+Mercury == Venus
+Venus == Earth
+Earth == Earth