diff options
author | Mateusz Lenik <mlen@mlen.pl> | 2014-10-21 15:34:00 -0500 |
---|---|---|
committer | Austin Seipp <austin@well-typed.com> | 2014-10-21 15:36:14 -0500 |
commit | 972ba1210d1bb535c41526ce396c0f086d30b59a (patch) | |
tree | a6b4531b00c8cfa98ef0e12ecbbbfc181abffbc7 /testsuite/tests/warnings | |
parent | 69f63612fc17cd6b3baaa8898c8595bde304ebfb (diff) | |
download | haskell-972ba1210d1bb535c41526ce396c0f086d30b59a.tar.gz |
Enabled warn on tabs by default (fixes #9230)
Summary:
This revision enables -fwarn-tabs by default and add a suppression
flag, so that GHC compilation won't fail when some files contain tab
characters.
Test Plan: Additional test case, T9230, was added to cover that change.
Reviewers: austin
Reviewed By: austin
Subscribers: simonmar, ezyang, carter, thomie, mlen
Differential Revision: https://phabricator.haskell.org/D255
GHC Trac Issues: #9230
Conflicts:
testsuite/driver/testlib.py
Diffstat (limited to 'testsuite/tests/warnings')
-rw-r--r-- | testsuite/tests/warnings/should_compile/T9230.hs | 5 | ||||
-rw-r--r-- | testsuite/tests/warnings/should_compile/T9230.stderr | 2 | ||||
-rw-r--r-- | testsuite/tests/warnings/should_compile/all.T | 3 |
3 files changed, 9 insertions, 1 deletions
diff --git a/testsuite/tests/warnings/should_compile/T9230.hs b/testsuite/tests/warnings/should_compile/T9230.hs new file mode 100644 index 0000000000..cb369f7fea --- /dev/null +++ b/testsuite/tests/warnings/should_compile/T9230.hs @@ -0,0 +1,5 @@ +module T9230 where + +test :: Monad m => m () +test = do + return () diff --git a/testsuite/tests/warnings/should_compile/T9230.stderr b/testsuite/tests/warnings/should_compile/T9230.stderr new file mode 100644 index 0000000000..09e1f647ed --- /dev/null +++ b/testsuite/tests/warnings/should_compile/T9230.stderr @@ -0,0 +1,2 @@ + +T9230.hs:5:1: Warning: Tab character diff --git a/testsuite/tests/warnings/should_compile/all.T b/testsuite/tests/warnings/should_compile/all.T index f6747bf849..903ab69a84 100644 --- a/testsuite/tests/warnings/should_compile/all.T +++ b/testsuite/tests/warnings/should_compile/all.T @@ -1,3 +1,4 @@ test('T9178', extra_clean(['T9178.o', 'T9178DataType.o', 'T9178.hi', 'T9178DataType.hi']), - multimod_compile, ['T9178', '-Wall'])
\ No newline at end of file + multimod_compile, ['T9178', '-Wall']) +test('T9230', normal, compile_without_flag('-fno-warn-tabs'), ['']) |