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