summaryrefslogtreecommitdiff
path: root/testsuite/tests/module/mod109.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/module/mod109.hs')
-rw-r--r--testsuite/tests/module/mod109.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/tests/module/mod109.hs b/testsuite/tests/module/mod109.hs
new file mode 100644
index 0000000000..e9b6f29171
--- /dev/null
+++ b/testsuite/tests/module/mod109.hs
@@ -0,0 +1,7 @@
+-- !!! redefining and using Prelude entities
+module A( null, nonNull ) where
+import Prelude hiding( null )
+import qualified Prelude
+null, nonNull :: Int -> Bool
+null x = x == 0
+nonNull x = not (Prelude.null [x]) && not (null x)