summaryrefslogtreecommitdiff
path: root/testsuite/tests/rename/should_compile/rn029.hs
blob: 76dd993dc91d1866c46e5faaf3751a72acfbedc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
-- !!! Checking that lazy name clashing works.
module ShouldCompile where

import Data.List ( reverse, sort )

sort :: Int	-- Clashes with Data.List.sort, 
sort = 4	-- but never used, so OK	
	

reverse :: Int	-- Clashes with Data.List.reverse, 
reverse = 3	-- but the only uses are qualified

x = ShouldCompile.reverse

y = Data.List.reverse