16e31a4a2096a4b9aeb9a63fc7d83675c236da03
[ghc-hetmet.git] / ghc / tests / rename / should_compile / rn028.hs
1 -- !!! Checking that a toplevel declaration 'f' in module M is accessible
2 -- !!! as both 'f' and 'M.f' within the scope of M. Similarly for imported
3 -- !!! entities.
4 module ShouldCompile where
5
6 import List ( sort )
7
8 x :: Int
9 x = 2
10
11 y :: Int
12 y = x
13
14 z :: Int
15 z = ShouldCompile.x
16
17 sortOf :: Ord a=> [a] -> [a]
18 sortOf = List.sort