aelve / haskell-issues

An unofficial issue tracker for all things Haskell-related
18 stars 0 forks source link

Forbid tabs. #19

Closed Gurkenglas closed 8 years ago

Gurkenglas commented 8 years ago

People keep having indentation errors on #haskell because they accidentally some tabs into their code. Make ghc complain about this, or find another way to stop this problem.

gbaz commented 8 years ago

-fwarn-tabs exists, but it isn't in -Wall. ¯(ツ)

neongreen commented 8 years ago

GHC 7.10 already complains about tabs by default:

main = print    0
$ ghc tab.hs
[1 of 1] Compiling Main             ( tab.hs, tab.o )

tab.hs:1:13: Warning: Tab character
Linking tab ...
neongreen commented 8 years ago

@Gurkenglas: can this issue be closed, or have I missed something?

Gurkenglas commented 8 years ago

From gbaz's comment, I thought it's not default. Perhaps some flashing signs are in order. With a button on ghc's output to enhance vision on the probable-to-be-a-problem warnings and perhaps illustrate the problems with some examples... should we make an issue out of that? Nah...