diff options
Diffstat (limited to 'testsuite/tests/rename/should_compile/rn027.hs')
-rw-r--r-- | testsuite/tests/rename/should_compile/rn027.hs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/rename/should_compile/rn027.hs b/testsuite/tests/rename/should_compile/rn027.hs new file mode 100644 index 0000000000..76cefe9310 --- /dev/null +++ b/testsuite/tests/rename/should_compile/rn027.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 = X.isJust |