Skip to content

build sytem feature request: persist warnings

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.

Trac metadata
Trac field Value
Version 8.0.1
Type FeatureRequest
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Build System
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information