summaryrefslogtreecommitdiff
path: root/testsuite/tests/rename/should_compile/rn029.hs
blob: 20439d2ab6c288a014c30c8519b3b0cf323a3bfa (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