summaryrefslogtreecommitdiff
path: root/testsuite/tests/rename/should_compile/rn031.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/rename/should_compile/rn031.hs')
-rw-r--r--testsuite/tests/rename/should_compile/rn031.hs12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/rename/should_compile/rn031.hs b/testsuite/tests/rename/should_compile/rn031.hs
new file mode 100644
index 0000000000..7b4a07d626
--- /dev/null
+++ b/testsuite/tests/rename/should_compile/rn031.hs
@@ -0,0 +1,12 @@
+-- !!! Checking that an imported module may still have
+-- !!! a local alias without having used 'qualified'.
+module ShouldCompile where
+
+import Data.List as X
+import Data.Maybe as X
+
+x :: Ord a => [a] -> [a]
+x = X.sort
+
+y :: Maybe a -> Bool
+y = isJust