Skip to content

Feature request: Super fast output of all warnings #1179

Open
nh2 opened this Issue Jan 12, 2013 · 1 comment

3 participants

@nh2
nh2 commented Jan 12, 2013

For SublimeHaskell (and potentially all other editors and similar tools) we need to quickly be able to list all warnings of a cabal project.

cabal build does not show warnings on already compiled modules, so we currently use

cabal build --ghc-options="-fforce-recomp -Wall -fno-code"

to quickly get all warnings of the project. This is obviously slow since all code has to be re-compiled (even though code generation can be skipped).

It would be nice if cabal could use its knowledge of which code has no changes to maintain a cache of warnings and error messages that can be queried super quickly.

We could then add an option cabal build --check that only typechecks the project and prints out all errors/warnings of unchanged files from the cache, so that a no-op typecheck with warnings is instant and can give feedback very quickly or even as you type.

@ttuegel ttuegel added the library label Apr 23, 2015
@ttuegel ttuegel added this to the Cabal-1.24 milestone Apr 23, 2015
@23Skidoo 23Skidoo modified the milestone: Cabal 1.24, Cabal 1.26 Feb 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.