Change 'Tab character' warnings so there is one per file (#9723)
[ghc.git] / testsuite / tests / parser / should_compile / T9723b.hs
1
2 {-# OPTIONS -fwarn-tabs #-}
3
4 -- Check we get a warning for multiple tabs, with the correct number of tabs
5 -- mentioned
6
7 module ShouldCompile where
8
9 -- tab in middle of line
10 tab1 = 'a'
11 -- tab at end of line
12 tab2 = 'b'
13 -- two tabs in middle of line
14 tab3 = 'c'
15
16 tab4 = if True
17 -- tab at start of line
18 then 'd'
19 -- tab at start of line
20 else 'e'
21
22 -- tab before a comment starts