[project @ 2001-07-24 06:02:21 by ken]
[ghc-hetmet.git] / ghc / tests / rename / should_compile / rn032.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