summaryrefslogtreecommitdiff
path: root/testsuite/tests/rename/should_compile/rn031.hs
blob: 7b4a07d6260d38b1358d27ca037cd2b55f28a0dc (plain)
1
2
3
4
5
6
7
8
9
10
11
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