[GHC] #13533: -ddump-warnings

GHC ghc-devs at haskell.org
Wed Apr 5 21:12:00 UTC 2017


#13533: -ddump-warnings
-------------------------------------+-------------------------------------
           Reporter:  NeilMitchell   |             Owner:  (none)
               Type:  feature        |            Status:  new
  request                            |
           Priority:  normal         |         Milestone:
          Component:  Compiler       |           Version:  8.0.2
           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:
-------------------------------------+-------------------------------------
 It would be useful to have a way to dump the warnings from a compilation
 to a file, and seemingly the most natural way to do that would be to
 extend with {{{-ddump-warnings}}}.

 The use case is that developers often want to develop and debug without
 worrying so much about warnings, but should almost always resolve the
 warnings before committing. If you build with {{{-Werror}}} that impedes
 development. If you don't build with {{{-Werror}}} then you may check in
 code that later fails continuous integration tests, or have to do a clean
 build to get the warnings out. An alternative workflow would be to always
 dump warnings to a file, then before commit have a script to quickly check
 if any of the files are non-empty.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13533>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list