summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci/scripts/ghci019.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/ghci/scripts/ghci019.hs')
-rw-r--r--testsuite/tests/ghci/scripts/ghci019.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/ghci/scripts/ghci019.hs b/testsuite/tests/ghci/scripts/ghci019.hs
new file mode 100644
index 0000000000..f1ea575566
--- /dev/null
+++ b/testsuite/tests/ghci/scripts/ghci019.hs
@@ -0,0 +1,9 @@
+-- Trac #1581
+-- Even though Eq is not in scope unqualified, we want to
+-- see the Eq instance of Foo when we say :i Foo
+
+module Foo where
+import qualified Prelude
+
+data Foo = Foo
+instance Prelude.Eq Foo