[GHC] #13664: Ill formatted warning about tabulators
#13664: Ill formatted warning about tabulators -------------------------------------+------------------------------------- Reporter: Lemming | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.2.1-rc1 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- GHC-8.2.0.20170505 does not format warnings about tabulators very well. It seems to use the tab character for formatting, which yields too few spaces when formatted, and in turn too many characters are colored. (It is hard to present the problem in this ticket, though.) {{{ $ cat Tabulator.hs module Tabulator where x :: Int x = 1*2*3*4*5*6*7*8*9 -- we use a tab for indentation here $ ghc-8.2.0.20170505 -Wall Tabulator.hs [1 of 1] Compiling Tabulator ( Tabulator.hs, Tabulator.o ) Tabulator.hs:5:1: warning: [-Wtabs] Tab character found here. Please use spaces instead. | 5 | 1*2*3*4*5*6*7*8*9 | ^^^^^^^^ }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13664> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#13664: Ill formatted warning about tabulators -------------------------------------+------------------------------------- Reporter: Lemming | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.2.1-rc1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by RyanGlScott): * cc: Rufflewind (added) -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13664#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#13664: Ill formatted warning about tabulators -------------------------------------+------------------------------------- Reporter: Lemming | Owner: (none) Type: bug | Status: patch Priority: normal | Milestone: Component: Compiler | Version: 8.2.1-rc1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): D3549 Wiki Page: | -------------------------------------+------------------------------------- Changes (by Rufflewind): * status: new => patch * differential: => D3549 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13664#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#13664: Ill formatted warning about tabulators -------------------------------------+------------------------------------- Reporter: Lemming | Owner: (none) Type: bug | Status: patch Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.2.1-rc1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D3549 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * differential: D3549 => Phab:D3549 * milestone: => 8.2.1 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13664#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#13664: Ill formatted warning about tabulators -------------------------------------+------------------------------------- Reporter: Lemming | Owner: (none) Type: bug | Status: patch Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.2.1-rc1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D3549 Wiki Page: | -------------------------------------+------------------------------------- Comment (by Ben Gamari <ben@…>): In [changeset:"c068c38727b7bd7a1a75495167f7470abb7bf866/ghc" c068c387/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="c068c38727b7bd7a1a75495167f7470abb7bf866" Render \t as 8 spaces in caret diagnostics Test Plan: validate Reviewers: austin, bgamari, rwbarton Reviewed By: bgamari Subscribers: rwbarton, thomie GHC Trac Issues: #13664 Differential Revision: https://phabricator.haskell.org/D3549 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13664#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#13664: Ill formatted warning about tabulators -------------------------------------+------------------------------------- Reporter: Lemming | Owner: (none) Type: bug | Status: merge Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.2.1-rc1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D3549 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: patch => merge -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13664#comment:5> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#13664: Ill formatted warning about tabulators -------------------------------------+------------------------------------- Reporter: Lemming | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.2.1-rc1 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D3549 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: merge => closed * resolution: => fixed Comment: Merged with cd59db5a0dfb3b26a615036bcfdfd1c35d1e5e1d. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13664#comment:6> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC