summaryrefslogtreecommitdiff
path: root/testsuite/tests/rename/should_compile/rn031.hs
blob: f84c793956fb6da50f61082baf4729a5af14b1dc (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 = isJust