summaryrefslogtreecommitdiff
path: root/testsuite/tests/rename/should_compile/rn032.hs
blob: 6bbafd7a36b4f07d56f8085e5c26d2a84b537155 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
-- !!! Checking that a toplevel declaration 'f' in module M is accessible
-- !!! as both 'f' and 'M.f' within the scope of M. Similarly for imported
-- !!! entities.
module ShouldCompile where

import Data.List ( sort )

x :: Int
x = 2

y :: Int
y = x

z :: Int
z = ShouldCompile.x

sortOf :: Ord a=> [a] -> [a]
sortOf = Data.List.sort