summaryrefslogtreecommitdiff
path: root/testsuite/tests/module/mod112.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/module/mod112.hs')
-rw-r--r--testsuite/tests/module/mod112.hs12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/module/mod112.hs b/testsuite/tests/module/mod112.hs
new file mode 100644
index 0000000000..953d930603
--- /dev/null
+++ b/testsuite/tests/module/mod112.hs
@@ -0,0 +1,12 @@
+-- !!! Hiding an abstract (Prelude) class
+module M where
+
+import Prelude hiding ( Eq )
+
+class Eq a where
+ equ :: a -> Bool
+
+f :: Eq a => a -> Bool
+f x = equ x
+
+