Commit 318e0446 authored by simonmar's avatar simonmar
Browse files

[project @ 2003-12-10 12:32:29 by simonmar]

Add unused import warning tests.
parent 539260d1
......@@ -37,6 +37,7 @@ test('rn042', normal, multimod_compile, ['rn042', '-v0'])
test('rn043', normal, multimod_compile, ['rn042', '-v0'])
test('rn044', normal, multimod_compile, ['rn042', '-v0'])
test('rn045', normal, compile, [''])
test('rn046', normal, compile, ['-W'])
test('timing001', normal, compile, [''])
test('timing002', normal, compile, [''])
module ShouldCompile where
import List (nub) -- all unused
import Char (ord, chr) -- some unused
x = chr 42
rn046.hs:3:0: Warning: Imported from `Char' but not used: ord
Warning: Module `List' is imported, but nothing from it is used
(except perhaps instances visible in `List')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment