[GHC] #12627: build sytem feature request: persist warnings

#12627: build sytem feature request: persist warnings -------------------------------------+------------------------------------- Reporter: nomeata | Owner: Type: feature | Status: new request | Priority: normal | Milestone: Component: Build System | Version: 8.0.1 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: -------------------------------------+------------------------------------- I often have this pattern: I hack on GHC in `devel2` mode, introducing a few changes that cause warnings all over the place (usually related to imports). I ignore them while I work on the feature. Now I want to clean the warnings up. I basically only have one option: Switch the settings to make warnings errors, make clean, re-build everything, see where it aborts, fix it, restart the build. This is annoying. I would prefer if the build system (in any more) would keep, for every file, the output of the compiler on disc, e.g. with a suffix of `.comp- out` or something. This way, after a complete build, even without `-Werror`, I can simply run `cat **/*.comp-out` (or whatever suffix is suitable), fix all these error in one go, and be done with it. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12627 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12627: build sytem feature request: persist warnings -------------------------------------+------------------------------------- Reporter: nomeata | Owner: Type: feature request | Status: new Priority: normal | Milestone: Component: Build System | Version: 8.0.1 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: | -------------------------------------+------------------------------------- Comment (by ezyang): Doesn't directly solve your problem, but https://github.com/ezyang/ghc- shake logs warnings to persistent files so that you can view them later. They get stored in `*.log` files, so you can print them all out with `find dist -name "*.log" -exec cat {} \;` or something like that. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12627#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC