summaryrefslogtreecommitdiff
path: root/testsuite/tests/rename/should_compile/rn027.hs
blob: fb5bbdf52941764a5f7c313e8df2a2f335b02148 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{-# OPTIONS_GHC -Wno-compat-unqualified-imports #-}

-- !!! 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