[GHC] #9230: Make -fwarn-tabs the default
GHC
ghc-devs at haskell.org
Tue Nov 4 03:14:23 UTC 2014
#9230: Make -fwarn-tabs the default
-------------------------------------+-------------------------------------
Reporter: dfeuer | Owner: mlen
Type: feature | Status: closed
request | Milestone: 7.10.1
Priority: normal | Version: 7.8.2
Component: Compiler | Keywords:
Resolution: fixed | Architecture: Unknown/Multiple
Operating System: | Difficulty: Easy (less than 1
Unknown/Multiple | hour)
Type of failure: | Blocked By:
None/Unknown | Related Tickets:
Test Case: |
Blocking: |
Differential Revisions: Phab:D255, |
Phab:D399 |
-------------------------------------+-------------------------------------
Comment (by dfeuer):
Replying to [comment:30 Polarina]:
> Tabs are generally not the cause for incorrect indentation. It is mixing
them with spaces that do.
>
> An alternative approach would be to warn if a tab character is preceded
by a space. That would keep the tabs people happy, even those that use
tabs for indentation and spaces for alignment; while catching most cases
of tab/space mix-ups.
I don't think that will do the trick, but this ticket's comments aren't
the right venue for the discussion. If you have an idea for improving
`-fwarn-tabs`, you should open a new ticket.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9230#comment:32>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list